From 2c93a24d7e654942948cb6f943de36c48dc9db96 Mon Sep 17 00:00:00 2001 From: binary-husky Date: Tue, 15 Oct 2024 06:35:35 +0000 Subject: [PATCH] fix dockerfile: try align python --- docs/GithubAction+NoLocal+Latex+Arm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/GithubAction+NoLocal+Latex+Arm b/docs/GithubAction+NoLocal+Latex+Arm index 533c6e35..05752242 100644 --- a/docs/GithubAction+NoLocal+Latex+Arm +++ b/docs/GithubAction+NoLocal+Latex+Arm @@ -14,6 +14,10 @@ RUN /root/.cargo/bin/uv venv --seed \ && /root/.cargo/bin/uv pip install -r requirements.txt \ && /root/.cargo/bin/uv clean +# 对齐python3 +RUN rm /usr/bin/python3 && ln -s /root/.cargo/bin/python3 /usr/bin/python3 +RUN rm /usr/bin/python && ln -s /root/.cargo/bin/python3 /usr/bin/python + # 可选步骤,用于预热模块 RUN .venv/bin/python3 -c 'from check_proxy import warm_up_modules; warm_up_modules()'