Update Dockerfile
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
@@ -12,11 +12,11 @@ COPY . .
|
|
12 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
13 |
|
14 |
# 暴露端口
|
15 |
-
EXPOSE
|
16 |
|
17 |
# 健康检查
|
18 |
HEALTHCHECK --interval=30s --timeout=5s \
|
19 |
-
CMD curl -f http://localhost:
|
20 |
|
21 |
# 运行应用
|
22 |
CMD ["python", "app.py"]
|
|
|
12 |
RUN pip install --no-cache-dir --upgrade -r requirements.txt
|
13 |
|
14 |
# 暴露端口
|
15 |
+
EXPOSE 5200
|
16 |
|
17 |
# 健康检查
|
18 |
HEALTHCHECK --interval=30s --timeout=5s \
|
19 |
+
CMD curl -f http://localhost:5200/v1/models || exit 1
|
20 |
|
21 |
# 运行应用
|
22 |
CMD ["python", "app.py"]
|