-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
base: main
Are you sure you want to change the base?
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 91.73% 91.73%
=========================================
Files 481 481
Lines 34195 34195
Branches 2085 3147 +1062
=========================================
Hits 31368 31368
Misses 2827 2827
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
💻 变更类型 | 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"
d. 添加对 OSS 及 Auth URL SSL 证书检测(
S3_ENDPOINT
,S3_PUBLIC_DOMAIN
,*_ISSUER
)Note:
暂未合并 #3926 新加入的 ENV [TODO]已并入📝 补充信息 | Additional Information
镜像大小
启动日志
错误日志