fix: Dockerfile 确保 bcryptjs 安装

This commit is contained in:
aiyimickey 2026-07-01 21:45:53 +08:00
parent e289aadd47
commit 09efbbda31
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ WORKDIR /app
# 1. 依赖安装
COPY package.json package-lock.json ./
RUN npm ci --production=false
RUN npm ci --production=false && npm ls bcryptjs 2>/dev/null || npm install bcryptjs
# 2. 复制共享库(构建前由部署脚本创建 symlink: shared -> ../shared
COPY shared/ ./shared/