fix(ci): optimize pnpm install for arm64 builds
This commit is contained in:
parent
7589599f91
commit
4bdae3151d
|
|
@ -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 . .
|
||||
|
|
|
|||
Loading…
Reference in New Issue