From d6c9c79f5c4ff1d49e363500f458b53ce9ee6067 Mon Sep 17 00:00:00 2001 From: chufan Date: Fri, 9 Oct 2026 16:52:03 +0800 Subject: [PATCH] =?UTF-8?q?build(docker):=20=E5=AE=B9=E5=99=A8=E5=86=85?= =?UTF-8?q?=E7=94=A8=20scripts/ci=20=E5=AE=89=E8=A3=85=E4=BE=9D=E8=B5=96?= =?UTF-8?q?=E5=B9=B6=E8=B7=B3=E8=BF=87=20lifecycle?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 避免镜像构建阶段执行 fairy postinstall;修正 RUN 命令格式。 --- Dockerfile | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 731ac1d..83aef89 100644 --- a/Dockerfile +++ b/Dockerfile @@ -17,12 +17,13 @@ WORKDIR /apps COPY . . ## 基于容器自动构建 -RUN --mount=type=cache,id=pnpm,target=/pnpm/store sh ./scripts/ci && if [ "$NEED_PROXY" = "false" ]; \ - then \ - pnpm build; \ +RUN --mount=type=cache,id=pnpm,target=/pnpm/store \ + sh ./scripts/ci --ignore-scripts && \ + if [ "$NEED_PROXY" = "false" ]; then \ + pnpm build; \ else \ - pnpm build:proxy; \ - fi; + pnpm build:proxy; \ + fi FROM --platform=linux/amd64 registry.cn-hangzhou.aliyuncs.com/142vip-infra/nginx:1.29.0-alpine