From 2d9cf45fadae0d7104bb57bd211fbd35730f2565 Mon Sep 17 00:00:00 2001 From: DIYgod Date: Sat, 22 Jan 2022 14:51:42 +0000 Subject: [PATCH] chore: fix yarn timeout in gitub actions --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index bc658c48c..345838667 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,11 +22,13 @@ RUN if [ "$USE_CHINA_NPM_REGISTRY" = 1 ]; then \ RUN npm i -g npm RUN if [ "$PUPPETEER_SKIP_CHROMIUM_DOWNLOAD" = 0 ]; then \ - unset PUPPETEER_SKIP_CHROMIUM_DOWNLOAD && yarn ;\ + unset PUPPETEER_SKIP_CHROMIUM_DOWNLOAD ;\ else \ - export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true && yarn ;\ + export PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true ;\ fi; +RUN yarn --network-timeout 1000000 + COPY . /app RUN node scripts/docker/minify-docker.js