Skip to content

Commit

Permalink
fix dockerfile: try align python
Browse files Browse the repository at this point in the history
  • Loading branch information
binary-husky committed Oct 15, 2024
1 parent e9af6ef commit 2c93a24
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/GithubAction+NoLocal+Latex+Arm
Original file line number Diff line number Diff line change
Expand Up @@ -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()'

Expand Down

0 comments on commit 2c93a24

Please sign in to comment.