Skip to content

Commit

Permalink
Merge branch 'tickets/DM-40677'
Browse files Browse the repository at this point in the history
  • Loading branch information
fritzm committed Sep 7, 2023
2 parents 9aaf64f + 88eb123 commit 80fa2b4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions admin/tools/docker/build-user/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,10 @@ ARG UID
ARG GROUP
ARG GID

RUN getent group $GID || groupadd --gid $GID $GROUP
RUN getent passwd $UID || useradd --uid $UID --gid $GROUP $USER
RUN OGROUP=$(getent group $GID | cut -d: -f1) && if [ "$OGROUP" != "" ]; then groupdel $OGROUP; fi
RUN groupadd --gid $GID $GROUP
RUN OUSER=$(getent passwd $UID | cut -d: -f1) && if [ "$OUSER" != "" ]; then userdel $OUSER; fi
RUN useradd --uid $UID --gid $GROUP $USER

USER $USER
WORKDIR /home/$USER

0 comments on commit 80fa2b4

Please sign in to comment.