From 3da82f8e90bc78f75febcb70d3e276114c429884 Mon Sep 17 00:00:00 2001 From: Antti Hukkanen Date: Tue, 5 Apr 2022 22:10:22 +0300 Subject: [PATCH] More NPM configs to prevent ERR_SOCKET_TIMEOUT --- Dockerfile.release | 5 ++++- Dockerfile.web | 5 ++++- Dockerfile.worker | 5 ++++- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/Dockerfile.release b/Dockerfile.release index 64f296a4..3aa96797 100644 --- a/Dockerfile.release +++ b/Dockerfile.release @@ -81,7 +81,10 @@ ADD bulletin_board/server/Gemfile.lock /code/bulletin_board/server/Gemfile.lock ADD bulletin_board/server/Gemfile /code/bulletin_board/server/Gemfile # Prevent npm ERR! code ERR_SOCKET_TIMEOUT -RUN npm install --global npm@latest && npm config set fetch-timeout 1800000 -g +RUN npm install --global npm@latest && \ + npm config set fetch-timeout 1800000 -g && \ + npm config set fetch-retry-mintimeout 600000 -g && \ + npm config set fetch-retry-maxtimeout 1800000 -g # Install all dependencies, build artifacts and remove unnecessary files RUN cd /code && make install && make build SKIP_PYODIDE=true && \ diff --git a/Dockerfile.web b/Dockerfile.web index f81fd11b..e286efe1 100644 --- a/Dockerfile.web +++ b/Dockerfile.web @@ -81,7 +81,10 @@ ADD bulletin_board/server/Gemfile.lock /code/bulletin_board/server/Gemfile.lock ADD bulletin_board/server/Gemfile /code/bulletin_board/server/Gemfile # Prevent npm ERR! code ERR_SOCKET_TIMEOUT -RUN npm install --global npm@latest && npm config set fetch-timeout 1800000 -g +RUN npm install --global npm@latest && \ + npm config set fetch-timeout 1800000 -g && \ + npm config set fetch-retry-mintimeout 600000 -g && \ + npm config set fetch-retry-maxtimeout 1800000 -g # Install all dependencies, build artifacts and remove unnecessary files RUN cd /code && make install && make build SKIP_PYODIDE=true && \ diff --git a/Dockerfile.worker b/Dockerfile.worker index 5ae7ad9f..89d7d68f 100644 --- a/Dockerfile.worker +++ b/Dockerfile.worker @@ -71,7 +71,10 @@ ADD bulletin_board/server/Gemfile.lock /code/bulletin_board/server/Gemfile.lock ADD bulletin_board/server/Gemfile /code/bulletin_board/server/Gemfile # Prevent npm ERR! code ERR_SOCKET_TIMEOUT -RUN npm install --global npm@latest && npm config set fetch-timeout 1800000 -g +RUN npm install --global npm@latest && \ + npm config set fetch-timeout 1800000 -g && \ + npm config set fetch-retry-mintimeout 600000 -g && \ + npm config set fetch-retry-maxtimeout 1800000 -g # Install all dependencies, build artifacts and remove unnecessary files RUN cd /code && make install && make build && \