From 3885b408c911ac15559550b1ca01c8980a7051e9 Mon Sep 17 00:00:00 2001 From: Erik Date: Tue, 14 Apr 2026 23:45:43 +0200 Subject: [PATCH] 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) --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 5505f9e0..e35f5dde 100644 --- a/Dockerfile +++ b/Dockerfile @@ -45,4 +45,4 @@ ENV DATABASE_URL=postgresql://postgres:password@db:5432/dereth \ SHARED_SECRET=your_shared_secret ## 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"]