Skip to content

Commit

Permalink
chore: web build set npm mirror
Browse files Browse the repository at this point in the history
  • Loading branch information
trumpchifan committed Jan 19, 2025
1 parent ae3ef6b commit 3339d5f
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion web/Dockerfile-build
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@ WORKDIR /app
# copy both 'package.json' and 'package-lock.json' (if available)
COPY package*.json ./

# 设置 yarn 配置
RUN yarn config set registry https://registry.npmmirror.com \
&& yarn config set network-timeout 300000

# install project dependencies
# RUN yarn install --registry https://registry.npm.taobao.org/
RUN yarn install

# copy project files and folders to the current working directory (i.e. 'app' folder)
Expand Down

0 comments on commit 3339d5f

Please sign in to comment.