This commit is contained in:
lhx
2025-11-29 16:42:35 +08:00
parent 5174fd82b8
commit 36bcbc16b5

View File

@@ -33,4 +33,4 @@ EXPOSE 8000
RUN pip install --no-cache-dir gunicorn==21.2.0 RUN pip install --no-cache-dir gunicorn==21.2.0
# 启动命令使用gunicorn4个workers # 启动命令使用gunicorn4个workers
CMD ["gunicorn", "app.main:app", "-w", "4", "-k", "uvicorn.workers.UvicornWorker", "--bind", "0.0.0.0:8000", "--timeout", "120", "--keepalive", "5"] CMD ["gunicorn", "app.main:app", "-w", "4", "-k", "uvicorn.workers.UvicornWorker", "--bind", "0.0.0.0:8000", "--timeout", "120"]