From c72bc8c6af94a6d0f3e0388e3ba24aaa3530cc07 Mon Sep 17 00:00:00 2001 From: Finn Stutzenstein Date: Thu, 22 Oct 2026 19:19:05 +0000 Subject: [PATCH] Disable the gunicorn control socket in the Docker image Gunicorn 25.1+ creates a control socket under $HOME/.gunicorn, which fails in the read-only container without a home directory and logs "Control server error". The socket is not used. Co-Authored-By: Claude Opus 5.5 --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 67af954..9b651a8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -39,4 +39,4 @@ RUN python -m compileall -q max USER max ENTRYPOINT ["./entrypoint.sh"] -CMD ["gunicorn", "-w", "1", "-b", "0.0.0.0:8000", "max.app:app"] +CMD ["gunicorn", "-w", "1", "-b", "0.0.0.0:8000", "--no-control-socket", "max.app:app"]