修改npm

This commit is contained in:
孙小云 2025-12-06 22:18:00 +08:00
parent 5284e16cb4
commit 10926f6af7
2 changed files with 8 additions and 2 deletions

View File

@ -8,7 +8,10 @@ RUN apt-get update && \
COPY ./docker/nginx/web /build
WORKDIR /build
RUN npm --registry=https://registry.npmmirror.com install
RUN npm config set registry https://registry.npmmirror.com && \
npm config set fetch-timeout 600000 && \
npm config set fetch-retries 5 && \
npm install --verbose
RUN npm run build:prod
WORKDIR /src/main/resources

View File

@ -8,7 +8,10 @@ RUN apt-get update && \
COPY ./docker/nginx/web /build
WORKDIR /build
RUN npm --registry=https://registry.npmmirror.com install
RUN npm config set registry https://registry.npmmirror.com && \
npm config set fetch-timeout 600000 && \
npm config set fetch-retries 5 && \
npm install --verbose
RUN npm run build:prod
WORKDIR /src/main/resources