Container: Allow duplicate group id.

The image build would otherwise fail if the user's group id already
exists in the base image.
This commit is contained in:
ryneeverett 2024-07-26 16:29:10 -04:00 committed by SkewedZeppelin
parent 4c0e3c835c
commit 4d22f558ba

View File

@ -18,7 +18,7 @@ RUN git clone https://github.com/rfjakob/gocryptfs.git \
&& ./build-without-openssl.bash
RUN cp $(go env GOPATH | cut -f1 -d:)/bin/gocryptfs /usr/local/bin/
RUN groupadd -g $groupid $username \
RUN groupadd --non-unique --gid $groupid $username \
&& useradd --create-home --shell /bin/bash --uid $userid --gid $groupid $username \
&& echo $username >/root/username \
&& echo "export USER="$username >>/home/$username/.gitconfig