Merge branch 'master' into huggingface

This commit is contained in:
binary-husky
2023-05-28 21:21:12 +08:00
parent 90944bd744
commit 6f18d1716e
11 changed files with 75 additions and 50 deletions

View File

@@ -9,12 +9,16 @@ RUN echo '[global]' > /etc/pip.conf && \
WORKDIR /gpt
COPY requirements.txt .
# 装载项目文件
COPY . .
# 安装依赖
RUN pip3 install -r requirements.txt
COPY . .
# 可选步骤,用于预热模块
RUN python3 -c 'from check_proxy import warm_up_modules; warm_up_modules()'
# 启动
CMD ["python3", "-u", "main.py"]