Skip to content

Commit

Permalink
docker: use addgroup and adduser for alpine
Browse files Browse the repository at this point in the history
  • Loading branch information
sonroyaalmerol authored May 14, 2024
1 parent 281b534 commit f7f204f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit f7f204f

Please sign in to comment.