Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Docker guide: the runtime stage needs libatomic1 for Node.js 25 and later

未关闭 适合新手
#3,219 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
84/100
Issue 类型
文档
描述清晰度
描述清楚
活跃度
活跃
技术栈
docker, linux, node.js

调研方向

从 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

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

voidzero-dev/vite-plus 的其他 Issue

查看 voidzero-dev/vite-plus 的全部 Issue

相似的 Issue

更多 Rust Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。