Skip to content

Commit

Permalink
fix: Skip groupadd if gid exists in Docker setup (#53)
Browse files Browse the repository at this point in the history
Co-authored-by: Pierre Fenoll <pierrefenoll@gmail.com>
  • Loading branch information
vidbina and fenollp authored Dec 9, 2021
1 parent 55eb5a9 commit eddd107
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docker-toolchain/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ ARG ostype=Linux
RUN apt-get -qq update
RUN apt-get -qq install curl build-essential gcc-arm-linux-gnueabihf vim

RUN bash -c 'if [ ${ostype} == Linux ]; then groupadd -r --gid ${GID} ${UNAME}; fi'
RUN bash -c 'if [ ${ostype} == Linux ]; then groupadd -r --gid ${GID} ${UNAME} || true; fi'
RUN useradd -u $UID -g $GID -m $UNAME
USER $UNAME

Expand Down

0 comments on commit eddd107

Please sign in to comment.