Skip to content

Commit

Permalink
github action change
Browse files Browse the repository at this point in the history
  • Loading branch information
binary-husky committed Dec 22, 2024
1 parent 734c40b commit f403476
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ RUN echo '[global]' > /etc/pip.conf && \
# 语音输出功能(以下两行,第一行更换阿里源,第二行安装ffmpeg,都可以删除)
RUN UBUNTU_VERSION=$(awk -F= '/^VERSION_CODENAME=/{print $2}' /etc/os-release); echo "deb https://mirrors.aliyun.com/debian/ $UBUNTU_VERSION main non-free contrib" > /etc/apt/sources.list; apt-get update
RUN apt-get install ffmpeg -y
RUN apt-get clean


# 进入工作路径(必要)
Expand All @@ -33,6 +34,7 @@ RUN pip3 install -r requirements.txt

# 非必要步骤,用于预热模块(可以删除)
RUN python3 -c 'from check_proxy import warm_up_modules; warm_up_modules()'
RUN python3 -m pip cache purge


# 启动(必要)
Expand Down
3 changes: 2 additions & 1 deletion docs/GithubAction+AllCapacity
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ FROM fuqingxu/11.3.1-runtime-ubuntu20.04-with-texlive:latest

# edge-tts需要的依赖,某些pip包所需的依赖
RUN apt update && apt install ffmpeg build-essential -y
RUN apt-get clean

# use python3 as the system default python
WORKDIR /gpt
Expand All @@ -30,7 +31,7 @@ RUN python3 -m pip install -r request_llms/requirements_qwen.txt
RUN python3 -m pip install -r request_llms/requirements_chatglm.txt
RUN python3 -m pip install -r request_llms/requirements_newbing.txt
RUN python3 -m pip install nougat-ocr

RUN python3 -m pip cache purge

# 预热Tiktoken模块
RUN python3 -c 'from check_proxy import warm_up_modules; warm_up_modules()'
Expand Down
2 changes: 2 additions & 0 deletions docs/GithubAction+ChatGLM+Moss
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ RUN apt-get install -y git python python3 python-dev python3-dev --fix-missing

# edge-tts需要的依赖,某些pip包所需的依赖
RUN apt update && apt install ffmpeg build-essential -y
RUN apt-get clean

# use python3 as the system default python
RUN curl -sS https://bootstrap.pypa.io/get-pip.py | python3.8
Expand All @@ -22,6 +23,7 @@ RUN python3 -m pip install -r request_llms/requirements_moss.txt
RUN python3 -m pip install -r request_llms/requirements_qwen.txt
RUN python3 -m pip install -r request_llms/requirements_chatglm.txt
RUN python3 -m pip install -r request_llms/requirements_newbing.txt
RUN python3 -m pip cache purge


# 预热Tiktoken模块
Expand Down
2 changes: 2 additions & 0 deletions docs/GithubAction+NoLocal
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,7 @@ RUN apt update && apt install ffmpeg -y
# 可选步骤,用于预热模块
RUN python3 -c 'from check_proxy import warm_up_modules; warm_up_modules()'

RUN python3 -m pip cache purge && apt-get clean

# 启动
CMD ["python3", "-u", "main.py"]
2 changes: 2 additions & 0 deletions docs/GithubAction+NoLocal+Latex
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,7 @@ COPY --chown=gptuser:gptuser . .
# 可选步骤,用于预热模块
RUN python3 -c 'from check_proxy import warm_up_modules; warm_up_modules()'

RUN python3 -m pip cache purge

# 启动
CMD ["python3", "-u", "main.py"]
2 changes: 2 additions & 0 deletions docs/GithubAction+NoLocal+Vectordb
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@ RUN apt update && apt install ffmpeg -y

# 可选步骤,用于预热模块
RUN python3 -c 'from check_proxy import warm_up_modules; warm_up_modules()'
RUN python3 -m pip cache purge && apt-get clean


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

0 comments on commit f403476

Please sign in to comment.