exec "$@" in Entrypoints
An entrypoint script ends with exec "$@". What does exec add compared to just "$@"?
exec "$@"
exec
"$@"
Choose one answer
It passes environment variables, which "$@" alone would drop.
It runs the command in the background so the script can exit.
It makes the command run as root, whatever the Dockerfile's USER instruction says.
USER
The command replaces the shell, becoming PID 1 and getting signals.