Update Dockerfile
Browse files- 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 ["
|
|
|
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"]
|