ci: 固定API镜像pnpm安装源

This commit is contained in:
sunlei 2026-06-24 08:53:09 +08:00
parent f42627a0f0
commit c1ec253935

View File

@ -33,8 +33,8 @@ RUN apt-get update \
# 生产镜像只安装运行依赖dist 由 Jenkins Build stage 提前产出。
# 跳过安装阶段脚本,避免 NODE_ENV=production 时 devDependency 中的 husky 不存在导致 prepare 失败。
RUN corepack enable \
&& corepack prepare pnpm@9 --activate \
RUN npm install -g pnpm@9.15.9 --registry=https://registry.npmmirror.com \
&& pnpm config set registry https://registry.npmmirror.com \
&& pnpm install --prod --frozen-lockfile --ignore-scripts \
&& pnpm rebuild skia-canvas