Skip to content

Commit

Permalink
chore: increase npm fetch retries
Browse files Browse the repository at this point in the history
Docker builds are failing in GH Actions with econnreset, so
retry more?
  • Loading branch information
tkurki committed Sep 13, 2023
1 parent 48a8d15 commit d8882fc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,10 @@ FROM base AS tarballs_installed
WORKDIR /home/node/signalk
COPY *.tgz .
USER root

#Github Action seeing frequent econnresets, so retry more
RUN npm config set fetch-retries 5

RUN npm i -g signalk-server-*.tgz
# move server-admin-ui that gets installed as sibling of signalk-server
RUN mv /usr/lib/node_modules/@signalk/* /usr/lib/node_modules/signalk-server/node_modules/@signalk/
Expand Down

0 comments on commit d8882fc

Please sign in to comment.