Skip to content

Commit d170ca8

Browse files
committed
feat: update Dockerfile to clone frontend themes into build directory and add legacy peer dependencies
1 parent 0fe01c9 commit d170ca8

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Dockerfile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ RUN apk add --no-cache git python3 make g++
66
WORKDIR /build
77

88
# 克隆并构建 2024 主题
9-
RUN git clone --depth 1 https://github.com/vastsa/FileCodeBoxFronted.git fronted-2024 && \
10-
cd fronted-2024 && \
9+
RUN git clone --depth 1 https://github.com/vastsa/FileCodeBoxFronted.git /build/fronted-2024 && \
10+
cd /build/fronted-2024 && \
1111
npm install && \
1212
npm run build
1313

1414
# 克隆并构建 2023 主题
15-
RUN git clone --depth 1 https://github.com/vastsa/FileCodeBoxFronted2023.git fronted-2023 && \
16-
cd fronted-2023 && \
17-
npm install && \
15+
RUN git clone --depth 1 https://github.com/vastsa/FileCodeBoxFronted2023.git /build/fronted-2023 && \
16+
cd /build/fronted-2023 && \
17+
npm install --legacy-peer-deps && \
1818
npm run build
1919

2020
# 第二阶段:构建最终镜像

0 commit comments

Comments
 (0)