@lobehub/lobehub 2.0.0-next.165 → 2.0.0-next.166
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +25 -0
- package/Dockerfile +44 -52
- package/changelog/v1.json +5 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,31 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog
|
|
4
4
|
|
|
5
|
+
## [Version 2.0.0-next.166](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.165...v2.0.0-next.166)
|
|
6
|
+
|
|
7
|
+
<sup>Released on **2025-12-09**</sup>
|
|
8
|
+
|
|
9
|
+
#### 🐛 Bug Fixes
|
|
10
|
+
|
|
11
|
+
- **Dockerfile**: Electron main typing pkg.
|
|
12
|
+
|
|
13
|
+
<br/>
|
|
14
|
+
|
|
15
|
+
<details>
|
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
|
17
|
+
|
|
18
|
+
#### What's fixed
|
|
19
|
+
|
|
20
|
+
- **Dockerfile**: Electron main typing pkg, closes [#10693](https://github.com/lobehub/lobe-chat/issues/10693) ([f3357b0](https://github.com/lobehub/lobe-chat/commit/f3357b0))
|
|
21
|
+
|
|
22
|
+
</details>
|
|
23
|
+
|
|
24
|
+
<div align="right">
|
|
25
|
+
|
|
26
|
+
[](#readme-top)
|
|
27
|
+
|
|
28
|
+
</div>
|
|
29
|
+
|
|
5
30
|
## [Version 2.0.0-next.165](https://github.com/lobehub/lobe-chat/compare/v2.0.0-next.164...v2.0.0-next.165)
|
|
6
31
|
|
|
7
32
|
<sup>Released on **2025-12-09**</sup>
|
package/Dockerfile
CHANGED
|
@@ -8,29 +8,24 @@ ARG USE_CN_MIRROR
|
|
|
8
8
|
|
|
9
9
|
ENV DEBIAN_FRONTEND="noninteractive"
|
|
10
10
|
|
|
11
|
-
RUN
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
&& cp /usr/local/bin/node /distroless/bin/node \
|
|
30
|
-
# Copy CA certificates to distroless
|
|
31
|
-
&& cp /etc/ssl/certs/ca-certificates.crt /distroless/etc/ssl/certs/ca-certificates.crt \
|
|
32
|
-
# Cleanup temp files
|
|
33
|
-
&& rm -rf /tmp/* /var/lib/apt/lists/* /var/tmp/*
|
|
11
|
+
RUN <<'EOF'
|
|
12
|
+
set -e
|
|
13
|
+
if [ "${USE_CN_MIRROR:-false}" = "true" ]; then
|
|
14
|
+
sed -i "s/deb.debian.org/mirrors.ustc.edu.cn/g" "/etc/apt/sources.list.d/debian.sources"
|
|
15
|
+
fi
|
|
16
|
+
apt update
|
|
17
|
+
apt install ca-certificates proxychains-ng -qy
|
|
18
|
+
mkdir -p /distroless/bin /distroless/etc /distroless/etc/ssl/certs /distroless/lib
|
|
19
|
+
cp /usr/lib/$(arch)-linux-gnu/libproxychains.so.4 /distroless/lib/libproxychains.so.4
|
|
20
|
+
cp /usr/lib/$(arch)-linux-gnu/libdl.so.2 /distroless/lib/libdl.so.2
|
|
21
|
+
cp /usr/bin/proxychains4 /distroless/bin/proxychains
|
|
22
|
+
cp /etc/proxychains4.conf /distroless/etc/proxychains4.conf
|
|
23
|
+
cp /usr/lib/$(arch)-linux-gnu/libstdc++.so.6 /distroless/lib/libstdc++.so.6
|
|
24
|
+
cp /usr/lib/$(arch)-linux-gnu/libgcc_s.so.1 /distroless/lib/libgcc_s.so.1
|
|
25
|
+
cp /usr/local/bin/node /distroless/bin/node
|
|
26
|
+
cp /etc/ssl/certs/ca-certificates.crt /distroless/etc/ssl/certs/ca-certificates.crt
|
|
27
|
+
rm -rf /tmp/* /var/lib/apt/lists/* /var/tmp/*
|
|
28
|
+
EOF
|
|
34
29
|
|
|
35
30
|
## Builder image, install all the dependencies and build the app
|
|
36
31
|
FROM base AS builder
|
|
@@ -86,29 +81,26 @@ WORKDIR /app
|
|
|
86
81
|
COPY package.json pnpm-workspace.yaml ./
|
|
87
82
|
COPY .npmrc ./
|
|
88
83
|
COPY packages ./packages
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
&& cd /deps \
|
|
110
|
-
&& pnpm init \
|
|
111
|
-
&& pnpm add pg drizzle-orm
|
|
84
|
+
# bring in desktop workspace manifest so pnpm can resolve it
|
|
85
|
+
COPY apps/desktop/src/main/package.json ./apps/desktop/src/main/package.json
|
|
86
|
+
|
|
87
|
+
RUN <<'EOF'
|
|
88
|
+
set -e
|
|
89
|
+
if [ "${USE_CN_MIRROR:-false}" = "true" ]; then
|
|
90
|
+
export SENTRYCLI_CDNURL="https://npmmirror.com/mirrors/sentry-cli"
|
|
91
|
+
npm config set registry "https://registry.npmmirror.com/"
|
|
92
|
+
echo 'canvas_binary_host_mirror=https://npmmirror.com/mirrors/canvas' >> .npmrc
|
|
93
|
+
fi
|
|
94
|
+
export COREPACK_NPM_REGISTRY=$(npm config get registry | sed 's/\/$//')
|
|
95
|
+
npm i -g corepack@latest
|
|
96
|
+
corepack enable
|
|
97
|
+
corepack use $(sed -n 's/.*"packageManager": "\(.*\)".*/\1/p' package.json)
|
|
98
|
+
pnpm i
|
|
99
|
+
mkdir -p /deps
|
|
100
|
+
cd /deps
|
|
101
|
+
pnpm init
|
|
102
|
+
pnpm add pg drizzle-orm
|
|
103
|
+
EOF
|
|
112
104
|
|
|
113
105
|
COPY . .
|
|
114
106
|
|
|
@@ -137,12 +129,12 @@ COPY --from=builder /deps/node_modules/drizzle-orm /app/node_modules/drizzle-orm
|
|
|
137
129
|
# Copy server launcher
|
|
138
130
|
COPY --from=builder /app/scripts/serverLauncher/startServer.js /app/startServer.js
|
|
139
131
|
|
|
140
|
-
RUN
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
132
|
+
RUN <<'EOF'
|
|
133
|
+
set -e
|
|
134
|
+
addgroup -S -g 1001 nodejs
|
|
135
|
+
adduser -D -G nodejs -H -S -h /app -u 1001 nextjs
|
|
136
|
+
chown -R nextjs:nodejs /app /etc/proxychains4.conf
|
|
137
|
+
EOF
|
|
146
138
|
|
|
147
139
|
## Production image, copy all the files and run next
|
|
148
140
|
FROM scratch
|
package/changelog/v1.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lobehub/lobehub",
|
|
3
|
-
"version": "2.0.0-next.
|
|
3
|
+
"version": "2.0.0-next.166",
|
|
4
4
|
"description": "LobeHub - an open-source,comprehensive AI Agent framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Supports one-click free deployment of your private ChatGPT/LLM web application.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"framework",
|