This commit is contained in:
jinql
2025-08-31 23:01:40 +08:00
parent d035410f6d
commit 78aa9c9d3b
17 changed files with 736 additions and 652 deletions

View File

@@ -17,4 +17,7 @@ COPY . .
EXPOSE 8000
# 6. 启动命令
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]
CMD ["gunicorn", "-w", "4", "-k", "uvicorn.workers.UvicornWorker", "-b", "0.0.0.0:8000", "main:app"]
CMD ["gunicorn", "--config", "gunicorn.conf.py", "main:app"]