Skip to content

Commit

Permalink
More NPM configs to prevent ERR_SOCKET_TIMEOUT
Browse files Browse the repository at this point in the history
  • Loading branch information
ahukkanen committed Apr 5, 2022
1 parent 6615742 commit 3da82f8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
5 changes: 4 additions & 1 deletion Dockerfile.release
Original file line number Diff line number Diff line change
Expand Up @@ -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 && \
Expand Down
5 changes: 4 additions & 1 deletion Dockerfile.web
Original file line number Diff line number Diff line change
Expand Up @@ -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 && \
Expand Down
5 changes: 4 additions & 1 deletion Dockerfile.worker
Original file line number Diff line number Diff line change
Expand Up @@ -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 && \
Expand Down

0 comments on commit 3da82f8

Please sign in to comment.