fix(mining-admin-service): 添加bcrypt依赖和编译工具
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
319a787c43
commit
c032f30f7b
|
|
@ -32,8 +32,8 @@ FROM node:20-alpine AS runner
|
|||
RUN addgroup --system --gid 1001 nodejs && \
|
||||
adduser --system --uid 1001 -G nodejs nestjs
|
||||
|
||||
# 安装运行时依赖
|
||||
RUN apk add --no-cache curl tzdata openssl
|
||||
# 安装运行时依赖和编译工具
|
||||
RUN apk add --no-cache curl tzdata openssl python3 make g++
|
||||
|
||||
# 创建 app 目录并设置所有权
|
||||
RUN mkdir -p /app && chown nestjs:nodejs /app
|
||||
|
|
@ -42,7 +42,7 @@ WORKDIR /app
|
|||
# 切换到非 root 用户
|
||||
USER nestjs
|
||||
|
||||
# 复制依赖文件并安装生产依赖
|
||||
# 复制依赖文件并安装生产依赖(包含原生模块编译)
|
||||
COPY --chown=nestjs:nodejs package*.json ./
|
||||
RUN npm ci --only=production && npm cache clean --force
|
||||
|
||||
|
|
|
|||
|
|
@ -21,6 +21,7 @@
|
|||
"@nestjs/platform-express": "^10.3.0",
|
||||
"@nestjs/swagger": "^7.1.17",
|
||||
"@prisma/client": "^5.7.1",
|
||||
"bcrypt": "^5.1.1",
|
||||
"class-transformer": "^0.5.1",
|
||||
"class-validator": "^0.14.0",
|
||||
"decimal.js": "^10.4.3",
|
||||
|
|
|
|||
Loading…
Reference in New Issue