fix: improve npm install reliability with retry configurations in Dockerfile

This commit is contained in:
SaelixCode
2026-03-03 09:20:06 -05:00
parent 1fd078616a
commit 0032c6757a
+6 -2
View File
@@ -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/ ./