File size: 529 Bytes
031f0e2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# 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

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"]