|
|
|
|
|
|
|
|
|
FROM python:3.11 |
|
|
|
|
|
|
|
RUN echo '[global]' > /etc/pip.conf && \ |
|
echo 'index-url = https://mirrors.aliyun.com/pypi/simple/' >> /etc/pip.conf && \ |
|
echo 'trusted-host = mirrors.aliyun.com' >> /etc/pip.conf |
|
|
|
|
|
|
|
WORKDIR /gpt |
|
|
|
|
|
|
|
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()' |
|
|
|
|
|
|
|
CMD ["python3", "-u", "main.py"] |
|
|