build changes
This commit is contained in:
17
.dockerfiles/entrypoint.sh
Normal file
17
.dockerfiles/entrypoint.sh
Normal file
@@ -0,0 +1,17 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
if [ "$(id -u)" -eq 0 ]; then
|
||||
[ -n "${PUID}" ] && usermod -u "${PUID}" monkey
|
||||
[ -n "${PGID}" ] && groupmod -g "${PGID}" monkey
|
||||
fi
|
||||
|
||||
printf "Configuring application...\n"
|
||||
|
||||
if [ "$(id -u)" -eq 0 ]; then
|
||||
printf "Switching UID=%s and GID=%s\n" "$(id -u monkey)" "$(id -g monkey)"
|
||||
exec su-exec monkey:monkey "$@"
|
||||
else
|
||||
exec "$@"
|
||||
fi
|
||||
Reference in New Issue
Block a user