This commit is contained in:
@ -9,7 +9,9 @@ WORKDIR /app
|
||||
|
||||
# 安装依赖
|
||||
COPY package.json ./
|
||||
RUN npm install
|
||||
# 使用 npm 缓存来加速构建
|
||||
RUN npm config set cache /tmp/npm-cache && \
|
||||
npm install --cache /tmp/npm-cache --prefer-offline --no-audit --no-fund
|
||||
|
||||
# 构建阶段
|
||||
FROM base AS builder
|
||||
|
Reference in New Issue
Block a user