From 4bdae3151d786eccb9f66a92c8bda95c4ce3d57c Mon Sep 17 00:00:00 2001 From: lintsinghua Date: Tue, 16 Dec 2025 23:13:05 +0800 Subject: [PATCH] fix(ci): optimize pnpm install for arm64 builds --- frontend/Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/Dockerfile b/frontend/Dockerfile index 6f75a8c..e50270a 100644 --- a/frontend/Dockerfile +++ b/frontend/Dockerfile @@ -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 . .