更新 Dockerfile 中的 npm 安装命令,添加 --legacy-peer-deps 选项以解决依赖问题
All checks were successful
构建并运行 Docker / build (push) Successful in 1h22m28s
All checks were successful
构建并运行 Docker / build (push) Successful in 1h22m28s
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user