@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 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
+ [![](https://img.shields.io/badge/-BACK_TO_TOP-151515?style=flat-square)](#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
- # If you want to build docker in China, build with --build-arg USE_CN_MIRROR=true
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
- # Add required package
17
- && apt update \
18
- && apt install ca-certificates proxychains-ng -qy \
19
- # Prepare required package to distroless
20
- && mkdir -p /distroless/bin /distroless/etc /distroless/etc/ssl/certs /distroless/lib \
21
- # Copy proxychains to distroless
22
- && cp /usr/lib/$(arch)-linux-gnu/libproxychains.so.4 /distroless/lib/libproxychains.so.4 \
23
- && cp /usr/lib/$(arch)-linux-gnu/libdl.so.2 /distroless/lib/libdl.so.2 \
24
- && cp /usr/bin/proxychains4 /distroless/bin/proxychains \
25
- && cp /etc/proxychains4.conf /distroless/etc/proxychains4.conf \
26
- # Copy node to distroless
27
- && cp /usr/lib/$(arch)-linux-gnu/libstdc++.so.6 /distroless/lib/libstdc++.so.6 \
28
- && cp /usr/lib/$(arch)-linux-gnu/libgcc_s.so.1 /distroless/lib/libgcc_s.so.1 \
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
- RUN \
91
- # If you want to build docker in China, build with --build-arg USE_CN_MIRROR=true
92
- if [ "${USE_CN_MIRROR:-false}" = "true" ]; then \
93
- export SENTRYCLI_CDNURL="https://npmmirror.com/mirrors/sentry-cli"; \
94
- npm config set registry "https://registry.npmmirror.com/"; \
95
- echo 'canvas_binary_host_mirror=https://npmmirror.com/mirrors/canvas' >> .npmrc; \
96
- fi \
97
- # Set the registry for corepack
98
- && export COREPACK_NPM_REGISTRY=$(npm config get registry | sed 's/\/$//') \
99
- # Update corepack to latest (nodejs/corepack#612)
100
- && npm i -g corepack@latest \
101
- # Enable corepack
102
- && corepack enable \
103
- # Use pnpm for corepack
104
- && corepack use $(sed -n 's/.*"packageManager": "\(.*\)".*/\1/p' package.json) \
105
- # Install the dependencies
106
- && pnpm i \
107
- # Add db migration dependencies
108
- && mkdir -p /deps \
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
- # Add nextjs:nodejs to run the app
142
- addgroup -S -g 1001 nodejs \
143
- && adduser -D -G nodejs -H -S -h /app -u 1001 nextjs \
144
- # Set permission for nextjs:nodejs
145
- && chown -R nextjs:nodejs /app /etc/proxychains4.conf
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
@@ -1,4 +1,9 @@
1
1
  [
2
+ {
3
+ "children": {},
4
+ "date": "2025-12-09",
5
+ "version": "2.0.0-next.166"
6
+ },
2
7
  {
3
8
  "children": {},
4
9
  "date": "2025-12-09",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lobehub/lobehub",
3
- "version": "2.0.0-next.165",
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",