From 6385abfd0ae95f822913dcca5002496cccca2c8f Mon Sep 17 00:00:00 2001 From: Michael Stucki Date: Fri, 21 Apr 2017 10:14:08 +0200 Subject: [PATCH] Accept any user and group IDs, even if they already exist --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 95236eb..ea5dade 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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