From 7a62a797636e738b32a90f31acea7ebc43bda69f Mon Sep 17 00:00:00 2001 From: Orion Date: Fri, 5 Jun 2026 11:43:07 +0800 Subject: [PATCH] Bust frontend clone cache in Docker builds --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 76a4208..951dda2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,7 +11,9 @@ WORKDIR /build # 克隆并构建 2024 主题 ARG FRONTEND_2024_REPO=https://git.orionc.me/orion/FileCodeBoxFronted.git ARG FRONTEND_2024_BRANCH=main -RUN git clone --depth 1 --branch "$FRONTEND_2024_BRANCH" "$FRONTEND_2024_REPO" /build/fronted-2024 && \ +ARG FRONTEND_CACHE_BUST=1 +RUN echo "$FRONTEND_CACHE_BUST" >/tmp/frontend-cache-bust && \ + git clone --depth 1 --branch "$FRONTEND_2024_BRANCH" "$FRONTEND_2024_REPO" /build/fronted-2024 && \ cd /build/fronted-2024 && \ pnpm install --frozen-lockfile --prod=false && \ pnpm run build