Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
|
@@ -38,7 +38,7 @@ EXPOSE 7860
|
|
| 38 |
|
| 39 |
# 健康检查
|
| 40 |
HEALTHCHECK --interval=30s --timeout=30s --start-period=5s --retries=3 \
|
| 41 |
-
CMD python -c "import requests; requests.get('http://localhost:
|
| 42 |
|
| 43 |
# 启动命令
|
| 44 |
-
CMD ["python", "-m", "uvicorn", "app:app", "--host", "0.0.0.0", "--port", "
|
|
|
|
| 38 |
|
| 39 |
# 健康检查
|
| 40 |
HEALTHCHECK --interval=30s --timeout=30s --start-period=5s --retries=3 \
|
| 41 |
+
CMD python -c "import requests; requests.get('http://localhost:7860/health')" || exit 1
|
| 42 |
|
| 43 |
# 启动命令
|
| 44 |
+
CMD ["python", "-m", "uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|