From 82cbe74790392bb64ffc2dfd50e950b5d3fe68e6 Mon Sep 17 00:00:00 2001 From: Andrew Calcutt Date: Tue, 31 Oct 2023 14:49:35 -0400 Subject: [PATCH] fix: add maxsockets Signed-off-by: Andrew Calcutt --- Dockerfile | 3 ++- Dockerfile_light | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 0f99b6c..001804a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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; \ diff --git a/Dockerfile_light b/Dockerfile_light index f2455cc..b4d6878 100644 --- a/Dockerfile_light +++ b/Dockerfile_light @@ -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; \