修复缓存
Some checks failed
构建并运行 Docker / build (push) Failing after 12m17s

This commit is contained in:
2025-07-29 14:25:03 +08:00
parent cfdc5e5d9a
commit f96e141b17
4 changed files with 26 additions and 11 deletions

View File

@ -11,7 +11,7 @@ WORKDIR /app
COPY package.json ./
# 使用 npm 缓存来加速构建
RUN npm config set cache /tmp/npm-cache && \
npm install --cache /tmp/npm-cache --prefer-offline --no-audit --no-fund
npm install --cache /tmp/npm-cache --prefer-offline --no-audit --no-fund --production=false
# 构建阶段
FROM base AS builder