Skip to content

Commit 2c93a24

Browse files
committed
fix dockerfile: try align python
1 parent e9af6ef commit 2c93a24

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docs/GithubAction+NoLocal+Latex+Arm

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ RUN /root/.cargo/bin/uv venv --seed \
1414
&& /root/.cargo/bin/uv pip install -r requirements.txt \
1515
&& /root/.cargo/bin/uv clean
1616

17+
# 对齐python3
18+
RUN rm /usr/bin/python3 && ln -s /root/.cargo/bin/python3 /usr/bin/python3
19+
RUN rm /usr/bin/python && ln -s /root/.cargo/bin/python3 /usr/bin/python
20+
1721
# 可选步骤,用于预热模块
1822
RUN .venv/bin/python3 -c 'from check_proxy import warm_up_modules; warm_up_modules()'
1923

0 commit comments

Comments
 (0)