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