From dedc21f0fb9fe0610b2305f121f68f853fd34ccd Mon Sep 17 00:00:00 2001 From: Aditya Chandel <8075870+adityachandelgit@users.noreply.github.com> Date: Mon, 22 Sep 2025 19:39:21 -0600 Subject: [PATCH] Fix NPM timeout errors (#1193) --- Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 08e6b1e7b..19748a334 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,11 @@ FROM node:22-alpine AS angular-build WORKDIR /angular-app COPY ./booklore-ui/package.json ./booklore-ui/package-lock.json ./ -RUN npm install --force +RUN npm config set registry http://registry.npmjs.org/ \ + && npm config set fetch-retries 5 \ + && npm config set fetch-retry-mintimeout 20000 \ + && npm config set fetch-retry-maxtimeout 120000 \ + && npm install --force COPY ./booklore-ui /angular-app/ RUN npm run build --configuration=production