From d170ca8005aee9d02f479d07c7d8d78f6eaf25f9 Mon Sep 17 00:00:00 2001 From: Lan Date: Sat, 24 Jan 2026 11:03:33 +0800 Subject: [PATCH] feat: update Dockerfile to clone frontend themes into build directory and add legacy peer dependencies --- Dockerfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7875faf..004d2c8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,15 +6,15 @@ RUN apk add --no-cache git python3 make g++ WORKDIR /build # 克隆并构建 2024 主题 -RUN git clone --depth 1 https://github.com/vastsa/FileCodeBoxFronted.git fronted-2024 && \ - cd fronted-2024 && \ +RUN git clone --depth 1 https://github.com/vastsa/FileCodeBoxFronted.git /build/fronted-2024 && \ + cd /build/fronted-2024 && \ npm install && \ npm run build # 克隆并构建 2023 主题 -RUN git clone --depth 1 https://github.com/vastsa/FileCodeBoxFronted2023.git fronted-2023 && \ - cd fronted-2023 && \ - npm install && \ +RUN git clone --depth 1 https://github.com/vastsa/FileCodeBoxFronted2023.git /build/fronted-2023 && \ + cd /build/fronted-2023 && \ + npm install --legacy-peer-deps && \ npm run build # 第二阶段:构建最终镜像