Skip to content

Commit

Permalink
Dockerfile: better workaround for slow response from yarnpkg.com (An …
Browse files Browse the repository at this point in the history
…unexpected error occurred: "https://registry.yarnpkg.com/@mui/base/-/base-5.0.0-beta.16.tgz: ESOCKETTIMEDOUT")
  • Loading branch information
cyberw committed Oct 13, 2023
1 parent a7efd31 commit a39eccc
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,7 @@ FROM node:18.0.0-alpine as webui-builder
ADD locust/webui locust/webui
ADD package.json .

RUN yarn webui:install --production \
|| yarn webui:install --production
# Occasionally fails with 'An unexpected error occurred: "https://registry.yarnpkg.com/@mui/base/-/base-5.0.0-beta.16.tgz: ESOCKETTIMEDOUT".'
RUN yarn webui:install --production --network-timeout 60000

RUN yarn webui:build

Expand Down

0 comments on commit a39eccc

Please sign in to comment.