Skip to content

Commit 75c26bf

Browse files
committed
chore: docker build use npm mirror
1 parent 8258b26 commit 75c26bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ WORKDIR /app
1515

1616
# pnpm fetch does require only lockfile
1717
# 注意还需要复制 `.npmrc`,因为里面可能包含 npm registry 等配置,下载依赖需要用到
18-
COPY package.json pnpm-lock.yaml ./
18+
COPY package.json pnpm-lock.yaml .npmrc ./
1919
COPY patches ./patches
2020

2121
# 推荐使用 pnpm fetch 命令下载依赖到 virtual store,专为 docker 构建优化

0 commit comments

Comments
 (0)