Bust frontend clone cache in Docker builds
This commit is contained in:
+3
-1
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user