Remove --reload from production uvicorn CMD

The --reload flag without watchfiles installed causes uvicorn to
fall back to a polling-based file watcher that busy-loops at 100% CPU.
This was burning an entire core 24/7 doing nothing useful in production.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Erik 2026-04-14 23:45:43 +02:00
parent 475c7aba03
commit 3885b408c9

View file

@ -45,4 +45,4 @@ ENV DATABASE_URL=postgresql://postgres:password@db:5432/dereth \
SHARED_SECRET=your_shared_secret SHARED_SECRET=your_shared_secret
## Launch the FastAPI app using Uvicorn ## Launch the FastAPI app using Uvicorn
CMD ["uvicorn","main:app","--host","0.0.0.0","--port","8765","--reload","--workers","1","--no-access-log","--log-level","warning"] CMD ["uvicorn","main:app","--host","0.0.0.0","--port","8765","--workers","1","--no-access-log","--log-level","warning"]