Moonfanz commited on
Commit
2447c87
·
verified ·
1 Parent(s): c5feafd

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -8
Dockerfile CHANGED
@@ -1,14 +1,10 @@
1
- FROM python:3.9-slim-buster
2
 
3
  WORKDIR /app
4
 
5
- COPY . /app
6
-
7
  RUN pip install --no-cache-dir -r requirements.txt
8
 
9
- # Hugging Face 反向代理会处理端口映射,所以这里不需要 EXPOSE 指令
10
-
11
- ENV PORT 7860
12
 
13
- # 使用 gunicorn 运行应用,绑定到 0.0.0.0:7860
14
- CMD gunicorn --workers=1 --timeout=0 --bind=0.0.0.0:7860 app:app
 
1
+ FROM python:3.9-slim
2
 
3
  WORKDIR /app
4
 
5
+ COPY requirements.txt .
 
6
  RUN pip install --no-cache-dir -r requirements.txt
7
 
8
+ COPY . .
 
 
9
 
10
+ CMD ["python", "app.py"]