sanbo1200 commited on
Commit
bff5cb6
·
verified ·
1 Parent(s): 027ebc8

Update Dockerfile

Browse files
Files changed (1) hide show
  1. 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:8000/health')" || exit 1
42
 
43
  # 启动命令
44
- CMD ["python", "-m", "uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]
 
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"]