From 7de57395a82193ead70b893c75661d4be28852c2 Mon Sep 17 00:00:00 2001 From: "cnb.aUOqoEV4wEA" Date: Wed, 12 Nov 2025 14:31:35 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E4=BF=AE=E5=A4=8D=E6=B5=81=E6=B0=B4?= =?UTF-8?q?=E7=BA=BF=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .cnb.yml | 2 +- cache.dockerfile | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.cnb.yml b/.cnb.yml index dec65154..0b33f346 100644 --- a/.cnb.yml +++ b/.cnb.yml @@ -31,7 +31,7 @@ main: - name: use cache image: $DOCKER_CACHE_IMAGE_NAME commands: - - cp -r /.pnpm-store ./.pnpm-store + - cp -r /app/.pnpm-store ./.pnpm-store - name: build with cache script: - mv ./apps/web-tdesign/.env.production ./apps/web-tdesign/.env.production.back diff --git a/cache.dockerfile b/cache.dockerfile index e1d9c9a4..41f65712 100644 --- a/cache.dockerfile +++ b/cache.dockerfile @@ -8,10 +8,10 @@ ENV TZ=Asia/Shanghai RUN npm i -g corepack -WORKDIR / +WORKDIR /app # copy package.json and pnpm-lock.yaml to workspace -COPY . . +COPY . /app # 安装依赖 RUN --mount=type=cache,id=pnpm,target=/pnpm/store pnpm install --frozen-lockfile