fix: Stack-Umgebungsvariablen via environment: an Container weitergeben

feat: entrypoint.sh mit gosu für automatisches chown und Privilege-Drop
This commit is contained in:
Andre
2026-04-15 19:06:50 +02:00
parent 08be478587
commit 895e2e588f
3 changed files with 28 additions and 1 deletions
+11
View File
@@ -0,0 +1,11 @@
#!/bin/sh
set -e
APP_UID=${APP_UID:-1000}
APP_GID=${APP_GID:-1000}
# Fix ownership of mounted volumes so the app user can write to them
chown "${APP_UID}:${APP_GID}" /app/tmp /app/data /app/data/images
# Drop from root to app user and run the actual command
exec gosu "${APP_UID}:${APP_GID}" "$@"