ykl45 commited on
Commit
0caf66c
·
verified ·
1 Parent(s): 65c612c

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +10 -0
Dockerfile ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ # 使用官方 Python 运行时作为父镜像
2
+ FROM python:3.9-slim
3
+ RUN apt install git
4
+ RUN git clone https://github.com/snailyp/aichats-reverse.git app
5
+ WORKDIR app
6
+ # 安装依赖
7
+ RUN pip install --no-cache-dir -r requirements.txt
8
+ # 运行 app.py
9
+ WORKDIR api
10
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]