fix(mining-admin): Dockerfile builder 阶段补充 python3/make/g++ 以支持 bcrypt 编译
缓存失效后 npm ci 会从源码编译 bcrypt,但 node:20-alpine 的 builder 阶段 缺少 python3/make/g++,导致构建失败。runner 阶段已有这些工具, 现在 builder 阶段同步补上,确保镜像可稳定重建。 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
510a890b33
commit
991bc77db8
|
|
@ -13,6 +13,9 @@ COPY tsconfig*.json ./
|
|||
# 复制 Prisma schema
|
||||
COPY prisma ./prisma/
|
||||
|
||||
# 安装编译原生模块所需工具(bcrypt 等需要 python3/make/g++)
|
||||
RUN apk add --no-cache python3 make g++
|
||||
|
||||
# 安装所有依赖
|
||||
RUN npm ci
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue