From 4267de564221f3fda7a8ed47c27da91fc0431d71 Mon Sep 17 00:00:00 2001 From: wozulong <> Date: Wed, 20 Mar 2024 19:14:17 +0800 Subject: [PATCH] fix yarn timeout Signed-off-by: wozulong <> --- Dockerfile | 2 +- Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1ba0b65..607ebe3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,7 +3,7 @@ FROM node:16-slim as builder WORKDIR /build COPY web/package.json . COPY web/yarn.lock . -RUN yarn install +RUN yarn install --network-timeout 1000000 COPY ./web . COPY ./VERSION . RUN DISABLE_ESLINT_PLUGIN='true' REACT_APP_VERSION=$(cat VERSION) yarn build diff --git a/Makefile b/Makefile index 36ed727..35b78d5 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,7 @@ all: build-frontend start-backend build-frontend: @echo "Building frontend..." - @cd $(FRONTEND_DIR) && yarn install && DISABLE_ESLINT_PLUGIN='true' REACT_APP_VERSION=$(cat VERSION) yarn build + @cd $(FRONTEND_DIR) && yarn install --network-timeout 1000000 && DISABLE_ESLINT_PLUGIN='true' REACT_APP_VERSION=$(cat VERSION) yarn build start-backend: @echo "Starting backend dev server..."