Skip to content

Commit

Permalink
fix: add maxsockets
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>
  • Loading branch information
acalcutt committed Oct 31, 2023
1 parent 0f2c9e7 commit 82cbe74
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ WORKDIR /usr/src/app
COPY package.json /usr/src/app
COPY package-lock.json /usr/src/app

RUN npm config set fetch-retries 5; \
RUN npm config set maxsockets 1; \
npm config set fetch-retries 5; \
npm config set fetch-retry-mintimeout 100000; \
npm config set fetch-retry-maxtimeout 600000; \
npm ci --omit=dev; \
Expand Down
1 change: 1 addition & 0 deletions Dockerfile_light
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ WORKDIR /data
COPY / /usr/src/app

RUN cd /usr/src/app; \
npm config set maxsockets 1; \
npm config set fetch-retries 5; \
npm config set fetch-retry-mintimeout 100000; \
npm config set fetch-retry-maxtimeout 600000; \
Expand Down

0 comments on commit 82cbe74

Please sign in to comment.