Use forked frontend builds for test admin UI
This commit is contained in:
+6
-2
@@ -9,13 +9,17 @@ RUN corepack enable && \
|
||||
WORKDIR /build
|
||||
|
||||
# 克隆并构建 2024 主题
|
||||
RUN git clone --depth 1 https://github.com/vastsa/FileCodeBoxFronted.git /build/fronted-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 && \
|
||||
cd /build/fronted-2024 && \
|
||||
pnpm install --frozen-lockfile --prod=false && \
|
||||
pnpm run build
|
||||
|
||||
# 克隆并构建 2023 主题
|
||||
RUN git clone --depth 1 https://github.com/vastsa/FileCodeBoxFronted2023.git /build/fronted-2023 && \
|
||||
ARG FRONTEND_2023_REPO=https://git.orionc.me/orion/FileCodeBoxFronted2023.git
|
||||
ARG FRONTEND_2023_BRANCH=main
|
||||
RUN git clone --depth 1 --branch "$FRONTEND_2023_BRANCH" "$FRONTEND_2023_REPO" /build/fronted-2023 && \
|
||||
cd /build/fronted-2023 && \
|
||||
npm install --legacy-peer-deps && \
|
||||
npm run build
|
||||
|
||||
Reference in New Issue
Block a user