fork from prologic/pages-server
This commit is contained in:
parent
9d86fd33c6
commit
839a429820
33 changed files with 865 additions and 2482 deletions
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}" nobody
|
||||
[ -n "${PGID}" ] && groupmod -g "${PGID}" nobody
|
||||
fi
|
||||
|
||||
printf "Configuring application...\n"
|
||||
|
||||
if [ "$(id -u)" -eq 0 ]; then
|
||||
printf "Switching UID=%s and GID=%s\n" "$(id -u nobody)" "$(id -g nobody)"
|
||||
exec su-exec nobody:nobody "$@"
|
||||
else
|
||||
exec "$@"
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue