From 0032c6757aa449fc7e296ca4441a4b3c2566fbe7 Mon Sep 17 00:00:00 2001 From: SaelixCode Date: Tue, 3 Mar 2026 09:20:06 -0500 Subject: [PATCH] fix: improve npm install reliability with retry configurations in Dockerfile --- Dockerfile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index f55ce223..25538c6f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,7 +7,9 @@ WORKDIR /app/frontend COPY frontend/package*.json ./ # Install dependencies -RUN npm install +RUN npm config set fetch-retry-maxtimeout 120000 && \ + npm config set fetch-retries 5 && \ + npm install # Copy frontend source COPY frontend/ ./ @@ -27,7 +29,9 @@ RUN apk add --no-cache python3 make g++ COPY backend/package*.json ./ # Install dependencies -RUN npm install +RUN npm config set fetch-retry-maxtimeout 120000 && \ + npm config set fetch-retries 5 && \ + npm install # Copy backend source COPY backend/ ./