Skip to content

Commit

Permalink
Update GithubAction+NoLocal+Latex
Browse files Browse the repository at this point in the history
  • Loading branch information
Menghuan1918 authored Oct 7, 2024
1 parent 0b63cf1 commit 0fb812b
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions docs/GithubAction+NoLocal+Latex
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,11 @@ ENV DEBIAN_FRONTEND=noninteractive
SHELL ["/bin/bash", "-c"]
WORKDIR /gpt
COPY . .
RUN /root/.cargo/bin/uv venv --seed \
&& source .venv/bin/activate \
&& /root/.cargo/bin/uv pip install openai numpy arxiv rich colorama Markdown pygments pymupdf python-docx pdfminer\
&& /root/.cargo/bin/uv pip install -r requirements.txt
RUN pip3 install openai numpy arxiv rich colorama Markdown pygments pymupdf python-docx pdfminer\
&& pip3 install -r requirements.txt

# 可选步骤,用于预热模块
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 0fb812b

Please sign in to comment.