更新 Dockerfile 中的 npm 安装命令,添加 --legacy-peer-deps 选项以解决依赖问题
All checks were successful
构建并运行 Docker / build (push) Successful in 1h22m28s

This commit is contained in:
2025-07-31 20:23:41 +08:00
parent 07b2c5e3a6
commit 922e3d449f

View File

@ -10,7 +10,7 @@ WORKDIR /app
# 安装依赖
COPY package.json ./
# 使用 npm 缓存来加速构建
RUN npm install --prefer-offline --no-audit --no-fund --production=false
RUN npm install --prefer-offline --no-audit --no-fund --production=false --legacy-peer-deps
# 构建阶段
FROM base AS builder