From a39eccce4cb2d404d87aef54a3ce326b4ab8c4ad Mon Sep 17 00:00:00 2001 From: Lars Holmberg Date: Fri, 13 Oct 2023 16:52:59 +0200 Subject: [PATCH] Dockerfile: better workaround for slow response from yarnpkg.com (An unexpected error occurred: "https://registry.yarnpkg.com/@mui/base/-/base-5.0.0-beta.16.tgz: ESOCKETTIMEDOUT") --- Dockerfile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 6075d4ab13..4bbbe6f133 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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