From 099c725df6063b0a04e8bf1d66df3e353e02f4ed Mon Sep 17 00:00:00 2001 From: william Date: Sun, 23 Aug 2026 08:58:54 +0200 Subject: [PATCH] Fix su invocation in docker-entrypoint.sh causing 502 in prod MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit su forge -s /bin/sh -c 'exec "$@"' -- "$@" didn't forward gunicorn's argv correctly with this image's su, so the container never actually started gunicorn — Caddy then had nothing to proxy to (502). Flatten the command into a single string via "$*" instead. --- docker-entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh index 2b3f66bd..edbc08d4 100644 --- a/docker-entrypoint.sh +++ b/docker-entrypoint.sh @@ -11,4 +11,4 @@ set -e mkdir -p /app/projects chown -R forge:forge /app/projects -exec su forge -s /bin/sh -c 'exec "$@"' -- "$@" +exec su forge -s /bin/sh -c "$*"