From f7f204fc907f9ed0907be550823a385feaff8c32 Mon Sep 17 00:00:00 2001 From: Son Date: Tue, 14 May 2024 17:33:43 -0400 Subject: [PATCH] docker: use addgroup and adduser for alpine --- entrypoint.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index d0c73cb..090df73 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -4,8 +4,8 @@ set -e # Set process UID and GID at runtime if [ -n "$PUID" ] && [ -n "$PGID" ]; then - groupmod -g $PGID sogo - usermod -u $PUID -g $PGID sogo + addgroup -g $PGID sogo + adduser -u $PUID -G sogo -D sogo fi # create mandatory dirs and enforce owner+mode