修复工作

This commit is contained in:
2025-09-30 20:48:14 +08:00
parent 1f22d777e9
commit 6dba13713f
5 changed files with 26 additions and 21 deletions

View File

@@ -45,5 +45,5 @@ EXPOSE 8000
HEALTHCHECK --interval=30s --timeout=10s --retries=3 \
CMD curl -f http://localhost:8000/health || exit 1
# 启动应用
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000", "--workers", "1"]
# 启动应用(只监听本地,外网无法访问)
CMD ["uvicorn", "app.main:app", "--host", "127.0.0.1", "--port", "8000", "--workers", "1"]