Docker guide: the runtime stage needs libatomic1 for Node.js 25 and later
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 84/100
- Issue 类型
- 文档
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- docker, linux, node.js
- 领域
- devops, documentation
调研方向
从 https://viteplus.dev/guide/docker 上的“Production: SSR / Node.js server app” Dockerfile 和“Smaller still”提示开始。检查 runtime 阶段如何安装依赖,以及提示推荐了哪个镜像。更新指南,为 runtime 添加 libatomic1,并说明 gcr.io/distroless/cc 中缺少该库;两条说明都涵盖 Node.js 25 及更高版本后即完成。
由索引模型根据 Issue 内容生成。
描述
Documentation is
- Missing
- Outdated
- Confusing
- Not sure
Explain in Detail
The "Production: SSR / Node.js server app" Dockerfile copies the resolved Node.js binary into debian:bookworm-slim. Official Linux builds link libatomic from Node.js 25 on (BUILDING.md, nodejs/node#60790), and the slim image doesn't include it, so with Node.js 26 the runtime stage fails to start:
node: error while loading shared libraries: libatomic.so.1: cannot open shared object file: No such file or directory
The "Smaller still" tip has the same gap: gcr.io/distroless/cc doesn't include libatomic1 either, while distroless's Node.js images do.
Your Suggestion for Changes
Install it in the runtime stage (apt-get install -y --no-install-recommends libatomic1), and in the tip either name distroless's Node.js image or mention the library.
Relevant Page
https://viteplus.dev/guide/docker
Reproduction (Optional)
No response
Steps to reproduce (Optional)
No response
- 主要语言
- Rust
- 星标
- 6.3k
- 派生
- 283
- 平均合并
- 1 天 12 小时
- 30 天内合并 PR
- 235
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
voidzero-dev/vite-plus 的其他 Issue
-
pending triage
难度 2/5 1-3 小时 新手友好度 72/100
voidzero-dev/vite-plus#2882 · 2 条评论 ·
维护者通常 1 天内回复
-
pending triage
难度 4/5 3-5 天 新手友好度 48/100
voidzero-dev/vite-plus#3218 ·
维护者通常 1 天内回复
-
LSP loads vite.config.ts with the server's cwd as root可能已有人在做 @leaysgur 今天认领。 未关闭pending triage
voidzero-dev/vite-plus#3217 · 已指派 1 人 ·
维护者通常 1 天内回复
-
vp migrate doesn't flag esbuild-specific config (minify: "esbuild") — migrated project fails to build on Vite 8可能已有人在做 @john-okeefe 于 2 天前认领。 未关闭contribution welcome
voidzero-dev/vite-plus#3176 · 1 个 reaction · 已指派 1 人 ·
维护者通常 1 天内回复
-
`vp run`: scripts get a non-blocking stdin (EAGAIN) when `run` tasks in vite.config.ts use constants可能已有人在做 @wan9chi 于 1 天前认领。 未关闭bug
难度 4/5 3-5 天 新手友好度 55/100
voidzero-dev/vite-plus#3155 · 1 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
查看 voidzero-dev/vite-plus 的全部 Issue
相似的 Issue
-
checkpoint/verify/rebuild_indexes on a thread holding a WriteTransaction deadlock instead of INT-001未关闭bug known-issue
难度 2/5 1-3 小时 新手友好度 74/100
project-minigraf/minigraf#734 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 70/100
-
难度 1/5 1 小时以内 新手友好度 88/100
维护者通常 4 天内回复
-
难度 2/5 1-3 小时 新手友好度 70/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 64/100
Nimblesite/lspkit#26 ·
维护者通常 1 天内回复