1
0
mirror of https://github.com/stucki/docker-lineageos synced 2024-12-19 17:12:29 -05:00

Accept any user and group IDs, even if they already exist

This commit is contained in:
Michael Stucki 2017-04-21 10:14:08 +02:00
parent 4175e4d5e3
commit 6385abfd0a

View File

@ -25,8 +25,8 @@ ARG hostuid=1000
ARG hostgid=1000
RUN \
groupadd build -g $hostgid && \
useradd build -g $hostgid -u $hostuid && \
groupadd --gid $hostgid --force build && \
useradd --gid $hostgid --uid $hostuid --non-unique build && \
rsync -a /etc/skel/ /home/build/
RUN mkdir /home/build/bin