Fix su invocation in docker-entrypoint.sh causing 502 in prod
Build and deploy / build-and-push (push) Successful in 9s
Build and deploy / deploy (push) Successful in 7s

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.
This commit is contained in:
william
2026-08-23 08:58:54 +02:00
parent e94d23b1bf
commit 099c725df6
+1 -1
View File
@@ -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 "$*"