We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0fe01c9 commit d170ca8Copy full SHA for d170ca8
1 file changed
Dockerfile
@@ -6,15 +6,15 @@ RUN apk add --no-cache git python3 make g++
6
WORKDIR /build
7
8
# 克隆并构建 2024 主题
9
-RUN git clone --depth 1 https://github.com/vastsa/FileCodeBoxFronted.git fronted-2024 && \
10
- cd fronted-2024 && \
+RUN git clone --depth 1 https://github.com/vastsa/FileCodeBoxFronted.git /build/fronted-2024 && \
+ cd /build/fronted-2024 && \
11
npm install && \
12
npm run build
13
14
# 克隆并构建 2023 主题
15
-RUN git clone --depth 1 https://github.com/vastsa/FileCodeBoxFronted2023.git fronted-2023 && \
16
- cd fronted-2023 && \
17
- 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 && \
18
19
20
# 第二阶段:构建最终镜像
0 commit comments