This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user