From 6d9fe639d681d1035c79a5aa37bae58b9f758bba Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Tue, 9 Nov 2021 10:39:04 +0100 Subject: [PATCH] Add option to yarn in CI to avoid network timeouts Signed-off-by: Thomas Citharel --- docker/production/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docker/production/Dockerfile b/docker/production/Dockerfile index e031be942..c9ec24183 100644 --- a/docker/production/Dockerfile +++ b/docker/production/Dockerfile @@ -7,7 +7,8 @@ COPY js . ENV CYPRESS_INSTALL_BINARY 0 -RUN yarn install \ +# Network timeout because it's slow when cross-compiling +RUN yarn install --network-timeout 100000 \ && yarn run build # Then, build the application binary