修改dockerfile
This commit is contained in:
11
Dockerfile
11
Dockerfile
@@ -2,8 +2,17 @@ FROM node:24-alpine AS build
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
ARG NPM_REGISTRY=https://registry.npmmirror.com
|
||||
|
||||
COPY package*.json ./
|
||||
RUN npm ci
|
||||
RUN --mount=type=cache,target=/root/.npm \
|
||||
npm ci \
|
||||
--registry="${NPM_REGISTRY}" \
|
||||
--fetch-retries=5 \
|
||||
--fetch-retry-mintimeout=20000 \
|
||||
--fetch-retry-maxtimeout=120000 \
|
||||
--no-audit \
|
||||
--no-fund
|
||||
|
||||
COPY . .
|
||||
RUN npm run build
|
||||
|
||||
Reference in New Issue
Block a user