Adding USER_ID and GROUP_ID to specify permission without making breaking change (#882)

* fixing permissions to be able to run springboot with given UID and GID

* Adding USER_ID and GROUP_ID to specify permission without making breaking change

* move su exec to start.sh

---------

Co-authored-by: Aditya Chandel <8075870+adityachandelgit@users.noreply.github.com>
This commit is contained in:
Márk Gulyás
2025-09-06 07:00:48 +02:00
committed by GitHub
parent af622d9f75
commit 7604fa7fa0
5 changed files with 9 additions and 9 deletions

View File

@@ -15,4 +15,4 @@ mv "$TMP_CONF" /etc/nginx/nginx.conf
nginx -g 'daemon off;' &
# Start Spring Boot in foreground
exec java -jar /app/app.jar
su-exec ${USER_ID:-0}:${GROUP_ID:-0} java -jar /app/app.jar