Hugo-Jiang commited on
Commit
42a0809
·
1 Parent(s): d2b9231

update prot settings

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -3
Dockerfile CHANGED
@@ -43,11 +43,11 @@ RUN adduser --disabled-password --gecos "" appuser \
43
  USER appuser
44
 
45
  # 暴露端口
46
- EXPOSE 8000
47
 
48
  # 健康检查
49
  HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
50
- CMD python -c "import httpx; httpx.get('http://localhost:8000/health', timeout=5)" || exit 1
51
 
52
  # 启动命令
53
- CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000"]
 
43
  USER appuser
44
 
45
  # 暴露端口
46
+ EXPOSE 7860
47
 
48
  # 健康检查
49
  HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
50
+ CMD python -c "import httpx; httpx.get('http://localhost:7860/health', timeout=5)" || exit 1
51
 
52
  # 启动命令
53
+ CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "7860"]