Bust frontend clone cache in Docker builds

This commit is contained in:
Orion
2026-06-05 11:43:07 +08:00
parent 37462d2ec1
commit 7a62a79763
+3 -1
View File
@@ -11,7 +11,9 @@ WORKDIR /build
# 克隆并构建 2024 主题 # 克隆并构建 2024 主题
ARG FRONTEND_2024_REPO=https://git.orionc.me/orion/FileCodeBoxFronted.git ARG FRONTEND_2024_REPO=https://git.orionc.me/orion/FileCodeBoxFronted.git
ARG FRONTEND_2024_BRANCH=main 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 && \ cd /build/fronted-2024 && \
pnpm install --frozen-lockfile --prod=false && \ pnpm install --frozen-lockfile --prod=false && \
pnpm run build pnpm run build