Spaces:
Running
Running
# read the doc: https://huggingface.co/docs/hub/spaces-sdks-docker | |
# you will also find guides on how best to write your Dockerfile | |
FROM python:3.11 | |
# 进入工作路径(必要) | |
WORKDIR /gpt | |
RUN git clone https://github.com/binary-husky/gpt_academic.git | |
COPY ./config_private.py /gpt/gpt_academic/config_private.py | |
WORKDIR /gpt/gpt_academic | |
# 装载项目文件,安装剩余依赖(必要) | |
RUN pip3 install -r requirements.txt | |
ENV WEB_PORT 7860 | |
# 启动(必要) | |
CMD ["python3", "-u", "main.py"] | |
# CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"] |