From 4f07f71d49307628767d5fd7dd5073e4de473e3a Mon Sep 17 00:00:00 2001 From: Your Name Date: Mon, 22 Jun 2026 13:40:32 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E6=9B=B4=E6=96=B0cicd4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0750708..34a682d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,14 +8,14 @@ RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories # 安装编译工具:使用 build-base 元包(gcc/g++/make 等) + python3 + openssl RUN apk add --no-cache python3 build-base openssl && rm -rf /var/cache/apk/* -# 安装 pnpm 并配置镜像源,允许执行构建脚本 +# 安装 pnpm 并配置镜像源 RUN npm install -g pnpm && \ - pnpm config set registry https://registry.npmmirror.com && \ - pnpm config set enable-pre-post-scripts true + pnpm config set registry https://registry.npmmirror.com # 复制依赖文件 COPY package*.json pnpm-lock.yaml ./ -RUN pnpm install --frozen-lockfile +# 使用 --config 参数允许执行构建脚本 +RUN pnpm install --frozen-lockfile --config.enable-pre-post-scripts=true COPY . .