We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 50421d2 commit a7d3428Copy full SHA for a7d3428
1 file changed
entrypoint.sh
@@ -1,8 +1,6 @@
1
#!/bin/sh
2
# filepath: entrypoint.sh
3
4
-set -e
5
-
6
# Récupérer l'UID/GID de appuser dynamiquement
7
APPUSER_UID=$(id -u appuser 2>/dev/null || echo 1000)
8
APPUSER_GID=$(id -g appuser 2>/dev/null || echo 1000)
@@ -11,5 +9,4 @@ APPUSER_GID=$(id -g appuser 2>/dev/null || echo 1000)
11
9
chown -R ${APPUSER_UID}:${APPUSER_GID} /config 2>/dev/null || true
12
10
13
# Exécuter l'application avec l'utilisateur non-root
14
-# Note: su-exec peut afficher "setgroups" warnings en mode Docker, c'est inoffensif
15
exec su-exec ${APPUSER_UID}:${APPUSER_GID} "$@"
0 commit comments