This commit is contained in:
binary-husky
2023-06-29 12:54:19 +08:00
parent e874a16050
commit 9f9848c6e9
30 changed files with 2614 additions and 238 deletions

View File

@@ -10,12 +10,16 @@ RUN echo '[global]' > /etc/pip.conf && \
WORKDIR /gpt
# 装载项目文件
COPY . .
# 安装依赖
COPY requirements.txt ./
COPY ./docs/gradio-3.32.2-py3-none-any.whl ./docs/gradio-3.32.2-py3-none-any.whl
RUN pip3 install -r requirements.txt
# 装载项目文件
COPY . .
RUN pip3 install -r requirements.txt
# 可选步骤,用于预热模块
RUN python3 -c 'from check_proxy import warm_up_modules; warm_up_modules()'