Skip to content

Commit

Permalink
feat: add network timout to yarn install (#2723)
Browse files Browse the repository at this point in the history
Signed-off-by: Gaius <[email protected]>
  • Loading branch information
gaius-qi authored Sep 12, 2023
1 parent 8fb8b73 commit a666e53
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build/images/manager/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ WORKDIR /build

COPY ./manager/console/package.json /build

RUN yarn install --frozen-lockfile
RUN yarn install --frozen-lockfile --network-timeout 1000000

COPY ./manager/console /build

Expand Down
2 changes: 1 addition & 1 deletion hack/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ build-manager-console() {
MANAGER_ASSETS_DIR=$MANAGER_DIR/dist
docker run --workdir=/build \
--rm -v ${CONSOLE_DIR}:/build node:18-alpine \
sh -c "yarn install --frozen-lockfile && yarn build"
sh -c "yarn install --frozen-lockfile --network-timeout 1000000 && yarn build"
cp -r $CONSOLE_ASSETS $MANAGER_ASSETS_DIR
}

Expand Down

0 comments on commit a666e53

Please sign in to comment.