From 5b51f2c9450b8e2667bea27572ecb5853ca56d18 Mon Sep 17 00:00:00 2001 From: Bernard Siebens Date: Wed, 15 Jul 2026 13:18:10 +0200 Subject: [PATCH] Point HOME at /app so gunicorn stops erroring on boot MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit gunicorn 26's control server creates a socket in $HOME. The app user has no home directory, so every boot logged "Permission denied: /home/rosterchief" — harmless but noisy. /app is the workdir and already owned by the app user. Co-Authored-By: Claude Opus 4.8 --- Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 92283b8..86771e5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -57,7 +57,11 @@ RUN apt-get update && apt-get install --no-install-recommends -y \ ENV PYTHONUNBUFFERED=1 \ PYTHONDONTWRITEBYTECODE=1 \ - PATH="/app/.venv/bin:$PATH" + PATH="/app/.venv/bin:$PATH" \ + # gunicorn 26's control server puts a socket in $HOME. The app user has no home dir, so + # without this it logs "Permission denied: /home/rosterchief" on every boot. /app is + # already the workdir and owned by the app user, so point HOME there. + HOME="/app" WORKDIR /app