-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
👷 build: optimize image size under glibc
env
#4025
Conversation
@hezhijie0327 is attempting to deploy a commit to the LobeHub Pro Team on Vercel. A member of the Team first needs to authorize it. |
Thank you for raising your pull request and contributing to our Community |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4025 +/- ##
=========================================
Coverage 92.48% 92.48%
=========================================
Files 482 482
Lines 34488 34488
Branches 2288 3381 +1093
=========================================
Hits 31896 31896
Misses 2592 2592
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
@arvinxx 改造好了,新引入了一个
|
❤️ Great PR @hezhijie0327 ❤️ The growth of project is inseparable from user feedback and contribution, thanks for your contribution! If you are interesting with the lobehub developer community, please join our discord and then dm @arvinxx or @canisminor1990. They will invite you to our private developer channel. We are talking about the lobe-chat development or sharing ai newsletter around the world. |
🎉 This PR is included in version 1.20.1 🎉 The release is available on: Your semantic-release bot 📦🚀 |
* 'main' of github.com:cookieY/lobe-chat: 🔖 chore(release): v1.20.5 [skip ci] 📝 docs: Update docker-compose to use new LOGTO env (lobehub#4199) 👷 build: optimize image size under glibc env (lobehub#4176) 🔖 chore(release): v1.20.4 [skip ci] ⚡ perf: remove some blur style to improve performance (lobehub#4085) Update dependency unstructured-client to ^0.18.0 (lobehub#4065) 📝 docs: Add deployment using ZITADEL authentication services (lobehub#4081) 🔖 chore(release): v1.20.3 [skip ci] 🐛 fix: improve delete orphan chunks when delete files (lobehub#4179) 📝 docs: add new configuration item of clerk singup (lobehub#4188) 📝 docs: update model-provider document (lobehub#4181) 🔖 chore(release): v1.20.2 [skip ci] 💄 style: add zhipu glm-4-flashx model (lobehub#4173) 👷 build: revert lobehub#4025 (lobehub#4175) 🔖 chore(release): v1.20.1 [skip ci] 👷 build: optimize image size under `glibc` env (lobehub#4025) 🔖 chore(release): v1.20.0 [skip ci] ✨ feat: add Hunyuan(Tencent) model provider (lobehub#4147) 🔖 chore(release): v1.19.36 [skip ci] 💄 style: add llama3.2 model for openrouter provider (lobehub#4151)
💻 变更类型 | Change Type
🔀 变更说明 | Description of Change
承接 #3926 中提到的新方案
node:20-slim
前的方案,继承其所有特性的同时保留与node:20-alpine
等同的小体积a. 从
node:20-slim
提取node
及proxychains
的依赖项,移除对于正式环境无用的nodejs
开发环境(如npm
等),仅保留node
二进制b. 保留
Rootless
特性,nextjs:nodejs
glibc
的busybox:latest
进行应用环境准备及用户创建scratch
进行重新封装,镜像压缩[TODO]引入基于js
的启动器a. 简化
PROXY_URL
DNS 解析处理逻辑,使用dns
包b. 添加额外的诊断信息,如
PROXY_URL
DNS 解析失败等c. 添加
isValidSSL
function,用于后续检测 OSS 及 Auth URL 是否配置正确,检测异常提示添加NODE_TLS_REJECT_UNAUTHORIZED="0"
或映射/etc/ssl/certs/ca-certificates.crt
d. 添加对 OSS 及 Auth URL SSL 证书检测(
S3_ENDPOINT
,S3_PUBLIC_DOMAIN
,*_ISSUER
)node
内建CA
改用系统CA
,可通过映射主机/etc/ssl/certs/ca-certificates.crt
即可完成证书信任Note:
暂未合并 #3926 新加入的 ENV [TODO]已并入📝 补充信息 | Additional Information
镜像大小
启动日志