修改生产部署

This commit is contained in:
zcr
2026-06-15 15:01:22 +08:00
parent dbbaa7503c
commit 76d8eb6cdc

View File

@@ -19,4 +19,4 @@ RUN apt-get update && apt-get install -y \
RUN uv sync --frozen --no-cache
# Run the application.
CMD ["/app/.venv/bin/fastapi", "run", "app/main.py", "--port", "80", "--host", "0.0.0.0"]
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8000", "--workers", "4"]