Docker image hardened, seems to be working stable

This commit is contained in:
2026-07-30 09:46:31 +00:00
parent 5b0bb25177
commit 9d30844a1e
3 changed files with 17 additions and 9 deletions
+6 -5
View File
@@ -9,9 +9,10 @@ if [ "$(id -u)" = "0" ]; then
chown -R appuser:appgroup /data
fi
# Drop privileges and run the command using gosu
exec gosu appuser "$@"
# Drop privileges and run audio_splitter with the provided arguments
exec gosu appuser audio_splitter "$@"
else
# If not root, just run the command directly
exec "$@"
fi
# If not root, just run audio_splitter directly
# It's not supposed to be called
exec audio_splitter "$@"
fi