Skip to content

Commit 3890467

Browse files
committed
replace rm with rm -f
1 parent 074b3c9 commit 3890467

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/GithubAction+NoLocal+Latex+Arm

+4-4
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@ RUN /root/.cargo/bin/uv venv --seed \
1515
&& /root/.cargo/bin/uv clean
1616

1717
# 对齐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
18+
RUN rm -f /usr/bin/python3 && ln -s /gpt/.venv/bin/python /usr/bin/python3
19+
RUN rm -f /usr/bin/python && ln -s /gpt/.venv/bin/python /usr/bin/python
2020

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

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

0 commit comments

Comments
 (0)