fix: Dockerfile 确保 bcryptjs 安装
This commit is contained in:
parent
e289aadd47
commit
09efbbda31
|
|
@ -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/
|
||||
|
|
|
|||
Loading…
Reference in New Issue