From 42e57cf698d646453efc8f90d073593486edec83 Mon Sep 17 00:00:00 2001 From: break Date: Sun, 20 Sep 2026 15:30:47 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=85=8D=E7=BD=AE=20Corepack=20?= =?UTF-8?q?=E9=95=9C=E5=83=8F=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index a086fc9..36960ee 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,9 +6,11 @@ FROM --platform=linux/amd64 node:20-alpine AS builder # 使用阿里云镜像源加速 RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories -# 设置工作目录 WORKDIR /build +# Corepack 下载 pnpm 前使用镜像源,避免开发机或网络环境无法访问 npmjs.org +ENV COREPACK_NPM_REGISTRY=https://registry.npmmirror.com + # 安装 pnpm RUN corepack enable && corepack prepare pnpm@10.15.0 --activate