diff --git a/build/start-container.sh b/build/start-container.sh index 38c8251..e1fa2e3 100644 --- a/build/start-container.sh +++ b/build/start-container.sh @@ -4,7 +4,7 @@ set -e # install extra packages and extensions on first boot -if [[ ! -f /etc/first_boot ]]; then +if [[ $(id -u) -eq 0 && ! -f /etc/first_boot ]]; then if [[ -n "${EXTRA_APK_PACKAGES// /}" ]]; then # shellcheck disable=SC2086 apk add --no-cache $EXTRA_APK_PACKAGES