Update Dockerfile
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
@@ -8,7 +8,7 @@ WORKDIR /tmp/app
|
|
8 |
COPY . /tmp/app
|
9 |
|
10 |
# 安装依赖
|
11 |
-
RUN pip install
|
12 |
RUN pip install --no-cache-dir -r requirements.txt
|
13 |
RUN pip install 'numpy==1.26.4'
|
14 |
|
@@ -19,4 +19,4 @@ RUN mkdir separated
|
|
19 |
EXPOSE 5000
|
20 |
|
21 |
# 运行应用程序
|
22 |
-
CMD ["
|
|
|
8 |
COPY . /tmp/app
|
9 |
|
10 |
# 安装依赖
|
11 |
+
RUN pip install gunicorn
|
12 |
RUN pip install --no-cache-dir -r requirements.txt
|
13 |
RUN pip install 'numpy==1.26.4'
|
14 |
|
|
|
19 |
EXPOSE 5000
|
20 |
|
21 |
# 运行应用程序
|
22 |
+
CMD ["gunicorn", "-b", "0.0.0.0:5000", "--timeout", "300", "app:app"]
|