From ccb3c98f813d34b7b8c718ed9e2d0dae4c5035d9 Mon Sep 17 00:00:00 2001 From: Tim Donohue Date: Mon, 2 Mar 2020 13:26:26 -0600 Subject: [PATCH] Increase network timeout for Docker builds to 5min --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 4897b43ee2..d848666175 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,5 +6,7 @@ WORKDIR /app ADD . /app/ EXPOSE 3000 -RUN yarn install +# We run yarn install with an increased network timeout (5min) to avoid "ESOCKETTIMEDOUT" errors from hub.docker.com +# See, for example https://github.com/yarnpkg/yarn/issues/5540 +RUN yarn install --network-timeout 300000 CMD yarn run watch