Docker image hardened, seems to be working stable
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user