Update Dockerfile
add -f option to groupadd command. This fixed an issue for me where the group in $GID already existed, preventing me from completing DockerBuild.sh on Linux Mint 19
This commit is contained in:
parent
37c230c499
commit
dd24d10263
1 changed files with 1 additions and 1 deletions
|
@ -86,7 +86,7 @@ ARG USER=root
|
|||
ARG UID=0
|
||||
ARG GID=0
|
||||
RUN [[ "$UID" != "0" ]] \
|
||||
&& groupadd -g $GID $USER \
|
||||
&& groupadd -f -g $GID $USER \
|
||||
&& useradd -u $UID -g $GID $USER
|
||||
|
||||
# Using an entrypoint instead of CMD because the binary
|
||||
|
|
Loading…
Reference in a new issue