fix yarn timeout

Signed-off-by: wozulong <>
This commit is contained in:
wozulong 2024-03-20 19:14:17 +08:00
parent 8b55116563
commit 4267de5642
2 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@ FROM node:16-slim as builder
WORKDIR /build WORKDIR /build
COPY web/package.json . COPY web/package.json .
COPY web/yarn.lock . COPY web/yarn.lock .
RUN yarn install RUN yarn install --network-timeout 1000000
COPY ./web . COPY ./web .
COPY ./VERSION . COPY ./VERSION .
RUN DISABLE_ESLINT_PLUGIN='true' REACT_APP_VERSION=$(cat VERSION) yarn build RUN DISABLE_ESLINT_PLUGIN='true' REACT_APP_VERSION=$(cat VERSION) yarn build

View File

@ -7,7 +7,7 @@ all: build-frontend start-backend
build-frontend: build-frontend:
@echo "Building 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: start-backend:
@echo "Starting backend dev server..." @echo "Starting backend dev server..."