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:
hailin 2026-03-09 22:37:47 -07:00
parent 510a890b33
commit 991bc77db8
1 changed files with 3 additions and 0 deletions

View File

@ -13,6 +13,9 @@ COPY tsconfig*.json ./
# 复制 Prisma schema # 复制 Prisma schema
COPY prisma ./prisma/ COPY prisma ./prisma/
# 安装编译原生模块所需工具bcrypt 等需要 python3/make/g++
RUN apk add --no-cache python3 make g++
# 安装所有依赖 # 安装所有依赖
RUN npm ci RUN npm ci