fix(ci): optimize pnpm install for arm64 builds

This commit is contained in:
lintsinghua 2025-12-16 23:13:05 +08:00
parent 7589599f91
commit 4bdae3151d
1 changed files with 4 additions and 1 deletions

View File

@ -25,7 +25,10 @@ RUN npm config set registry https://registry.npmmirror.com && \
# 复制依赖文件
COPY package.json pnpm-lock.yaml ./
RUN pnpm install --no-frozen-lockfile
# 增加网络超时设置和并发数限制,防止 ARM 架构构建卡死
RUN pnpm config set network-timeout 300000 && \
pnpm config set fetch-retries 5 && \
pnpm install --no-frozen-lockfile --network-concurrency 1
# 复制源代码
COPY . .