mirror of
https://github.com/Studio-Saelix/sencho.git
synced 2026-07-28 20:59:09 +00:00
fix: improve npm install reliability with retry configurations in Dockerfile
This commit is contained in:
+6
-2
@@ -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/ ./
|
||||
|
||||
Reference in New Issue
Block a user