Commit efb560ed4dcc5bbd84296e37ca85d9ec06f1aa3d
1 parent
9016b5f7
chore: dockefile
Showing
1 changed file
with
5 additions
and
1 deletions
Dockerfile
... | ... | @@ -6,7 +6,11 @@ WORKDIR /app |
6 | 6 | |
7 | 7 | |
8 | 8 | # 安装 pnpm |
9 | -RUN npm install -g pnpm | |
9 | +# 海外使用这个下载 | |
10 | +# RUN npm install -g pnpm | |
11 | +# 国内下载不下来资源使用这个 | |
12 | +RUN npm config set registry https://registry.npmmirror.com \ | |
13 | + && npm install -g pnpm | |
10 | 14 | |
11 | 15 | # 复制 package.json 和 pnpm-lock.yaml 文件 |
12 | 16 | COPY package.json pnpm-lock.yaml ./ | ... | ... |