@lobehub/chat 0.110.5 → 0.110.6
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 +11 -3
- package/docs/Docker-Deployment.md +4 -0
- package/docs/Docker-Deployment.zh-CN.md +4 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,31 @@
|
|
|
2
2
|
|
|
3
3
|
# Changelog
|
|
4
4
|
|
|
5
|
+
### [Version 0.110.6](https://github.com/lobehub/lobe-chat/compare/v0.110.5...v0.110.6)
|
|
6
|
+
|
|
7
|
+
<sup>Released on **2023-12-11**</sup>
|
|
8
|
+
|
|
9
|
+
#### 🐛 Bug Fixes
|
|
10
|
+
|
|
11
|
+
- **misc**: Sharp missing in docker production.
|
|
12
|
+
|
|
13
|
+
<br/>
|
|
14
|
+
|
|
15
|
+
<details>
|
|
16
|
+
<summary><kbd>Improvements and Fixes</kbd></summary>
|
|
17
|
+
|
|
18
|
+
#### What's fixed
|
|
19
|
+
|
|
20
|
+
- **misc**: Sharp missing in docker production, closes [#603](https://github.com/lobehub/lobe-chat/issues/603) ([d89b48d](https://github.com/lobehub/lobe-chat/commit/d89b48d))
|
|
21
|
+
|
|
22
|
+
</details>
|
|
23
|
+
|
|
24
|
+
<div align="right">
|
|
25
|
+
|
|
26
|
+
[](#readme-top)
|
|
27
|
+
|
|
28
|
+
</div>
|
|
29
|
+
|
|
5
30
|
### [Version 0.110.5](https://github.com/lobehub/lobe-chat/compare/v0.110.4...v0.110.5)
|
|
6
31
|
|
|
7
32
|
<sup>Released on **2023-12-10**</sup>
|
package/Dockerfile
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
FROM node:20-slim AS base
|
|
2
2
|
|
|
3
|
+
## Sharp dependencies, copy all the files for production
|
|
4
|
+
FROM base AS sharp
|
|
5
|
+
ENV PNPM_HOME="/pnpm"
|
|
6
|
+
ENV PATH="$PNPM_HOME:$PATH"
|
|
7
|
+
RUN corepack enable
|
|
8
|
+
|
|
9
|
+
WORKDIR /app
|
|
10
|
+
|
|
11
|
+
RUN pnpm add sharp
|
|
12
|
+
|
|
3
13
|
## Install dependencies only when needed
|
|
4
14
|
FROM base AS builder
|
|
5
15
|
ENV PNPM_HOME="/pnpm"
|
|
@@ -14,9 +24,6 @@ COPY package.json ./
|
|
|
14
24
|
# RUN npm config set registry https://registry.npmmirror.com/
|
|
15
25
|
RUN pnpm i
|
|
16
26
|
|
|
17
|
-
# https://nextjs.org/docs/messages/sharp-missing-in-production
|
|
18
|
-
ENV NEXT_SHARP_PATH /app/node_modules/sharp
|
|
19
|
-
|
|
20
27
|
COPY . .
|
|
21
28
|
RUN pnpm run build:docker # run build standalone for docker version
|
|
22
29
|
|
|
@@ -39,6 +46,7 @@ RUN chown nextjs:nodejs .next
|
|
|
39
46
|
# https://nextjs.org/docs/advanced-features/output-file-tracing
|
|
40
47
|
COPY --from=builder --chown=nextjs:nodejs /app/.next/standalone ./
|
|
41
48
|
COPY --from=builder --chown=nextjs:nodejs /app/.next/static ./.next/static
|
|
49
|
+
COPY --from=sharp --chown=nextjs:nodejs /app/node_modules/.pnpm ./node_modules/.pnpm
|
|
42
50
|
|
|
43
51
|
USER nextjs
|
|
44
52
|
|
|
@@ -42,6 +42,10 @@ $ docker run -d -p 3210:3210 \
|
|
|
42
42
|
> - The password set in the official Docker image is `lobe66` by default. Replace it with your own password to improve security.
|
|
43
43
|
> - For a complete list of environment variables supported by LobeChat, please refer to the [Environment Variables](https://github.com/lobehub/lobe-chat/wiki/Environment-Variable.zh-CN) section.
|
|
44
44
|
|
|
45
|
+
> \[!WARNING]
|
|
46
|
+
>
|
|
47
|
+
> If the architecture of your **deployed server differs from the container architecture**, you may need to perform cross-compilation for **Sharp**. For further details, please refer to the documentation on [Sharp Cross-platform](https://sharp.pixelplumbing.com/install#cross-platform).
|
|
48
|
+
|
|
45
49
|
#### Use a proxy address
|
|
46
50
|
|
|
47
51
|
If you need to use OpenAI service through a proxy, you can use the `OPENAI_PROXY_URL` environment variable to configure the proxy address:
|
|
@@ -42,6 +42,10 @@ $ docker run -d -p 3210:3210 \
|
|
|
42
42
|
> - 官方 Docker 镜像中设定的密码默认为 `lobe66`,请将其替换为自己的密码以提升安全性
|
|
43
43
|
> - LobeChat 支持的完整环境变量列表请参考 [环境变量](https://github.com/lobehub/lobe-chat/wiki/Environment-Variable.zh-CN) 部分
|
|
44
44
|
|
|
45
|
+
> \[!WARNING]
|
|
46
|
+
>
|
|
47
|
+
> 注意,当**部署架构与镜像的不一致时**,需要对 **Sharp** 进行交叉编译,详见 [Sharp 交叉编译](https://sharp.pixelplumbing.com/install#cross-platform)
|
|
48
|
+
|
|
45
49
|
#### 使用代理地址
|
|
46
50
|
|
|
47
51
|
如果你需要通过代理使用 OpenAI 服务,你可以使用 `OPENAI_PROXY_URL` 环境变量来配置代理地址:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lobehub/chat",
|
|
3
|
-
"version": "0.110.
|
|
3
|
+
"version": "0.110.6",
|
|
4
4
|
"description": "An open-source, extensible (Function Calling), high-performance chatbot framework. It supports one-click free deployment of your private ChatGPT/LLM web application",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"chatbot",
|