Skip to content

Commit

Permalink
NPM timeout issue FIX
Browse files Browse the repository at this point in the history
  • Loading branch information
nagstler committed Apr 27, 2024
1 parent d73fd7a commit 8e48abd
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ui/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,13 @@ WORKDIR /app
# Copy package.json and package-lock.json (or yarn.lock if using Yarn)
COPY package*.json ./

# Set npm configuration to handle timeouts and retries
ENV NPM_CONFIG_LOGLEVEL=warn
ENV NPM_CONFIG_FETCH_RETRIES=5
ENV NPM_CONFIG_FETCH_RETRY_FACTOR=2
ENV NPM_CONFIG_FETCH_RETRY_MINTIMEOUT=20000
ENV NPM_CONFIG_FETCH_RETRY_MAXTIMEOUT=120000

# Install dependencies
RUN npm ci

Expand Down

0 comments on commit 8e48abd

Please sign in to comment.