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:
Kyle Harrity authored and Lane.Wei committed 2023-07-21 19:41:50 +08:00
1 parent 37c230c499
commit dd24d10263
1 file changed
+1 -1
+1 -1
View File
@@ -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