From 10926f6af72fa10f78c2dbe7b2341a41007f65de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=99=E5=B0=8F=E4=BA=91?= Date: Sat, 6 Dec 2025 22:18:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9npm?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker/nginx/Dockerfile | 5 ++++- docker/nginx/Dockerfile.registry | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/docker/nginx/Dockerfile b/docker/nginx/Dockerfile index 83d0d90..82ad26d 100644 --- a/docker/nginx/Dockerfile +++ b/docker/nginx/Dockerfile @@ -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 diff --git a/docker/nginx/Dockerfile.registry b/docker/nginx/Dockerfile.registry index b26ccac..f46058e 100644 --- a/docker/nginx/Dockerfile.registry +++ b/docker/nginx/Dockerfile.registry @@ -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