fix: add maxsockets

Signed-off-by: Andrew Calcutt <acalcutt@techidiots.net>
This commit is contained in:
Andrew Calcutt 2023-10-31 14:49:35 -04:00
parent 0f2c9e7d7c
commit 82cbe74790
2 changed files with 3 additions and 1 deletions

View File

@ -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; \

View File

@ -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; \