Skip to content

Commit

Permalink
replace rm with rm -f
Browse files Browse the repository at this point in the history
  • Loading branch information
binary-husky committed Oct 15, 2024
1 parent 074b3c9 commit 3890467
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/GithubAction+NoLocal+Latex+Arm
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ RUN /root/.cargo/bin/uv venv --seed \
&& /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 rm -f /usr/bin/python3 && ln -s /gpt/.venv/bin/python /usr/bin/python3
RUN rm -f /usr/bin/python && ln -s /gpt/.venv/bin/python /usr/bin/python

# 可选步骤,用于预热模块
RUN .venv/bin/python3 -c 'from check_proxy import warm_up_modules; warm_up_modules()'
RUN python3 -c 'from check_proxy import warm_up_modules; warm_up_modules()'

# 启动
CMD [".venv/bin/python3", "-u", "main.py"]
CMD ["python3", "-u", "main.py"]

0 comments on commit 3890467

Please sign in to comment.