mirror of
https://github.com/linux-do/new-api.git
synced 2025-09-20 09:16:37 +08:00
fix yarn timeout
Signed-off-by: wozulong <>
This commit is contained in:
parent
8b55116563
commit
4267de5642
@ -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
|
||||
|
2
Makefile
2
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..."
|
||||
|
Loading…
Reference in New Issue
Block a user