next-playground commited on
Commit
15b42c0
·
verified ·
1 Parent(s): 3338a56

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -1
Dockerfile CHANGED
@@ -9,9 +9,10 @@ COPY . /app
9
 
10
  # 安装依赖
11
  RUN pip install --no-cache-dir -r requirements.txt
 
12
 
13
  # 暴露端口
14
  EXPOSE 5000
15
 
16
  # 运行应用程序
17
- CMD ["python", "./app.py"]
 
9
 
10
  # 安装依赖
11
  RUN pip install --no-cache-dir -r requirements.txt
12
+ RUN pip install --no-cache-dir gunicorn
13
 
14
  # 暴露端口
15
  EXPOSE 5000
16
 
17
  # 运行应用程序
18
+ CMD ["gunicorn", "-b", "0.0.0.0:5000", "app:app"]