diff --git a/Dockerfile b/Dockerfile index 9616057..0e0cdc9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,4 +20,6 @@ RUN rm -rf /usr/local/go && tar -C /usr/local -xzf go1.18.6.linux-amd64.tar.gz ENV PATH $PATH:/usr/local/go/bin -RUN useradd -r -u 111 -g 116 -d /var/lib/jenkins -M jenkins +RUN groupadd -r -g 116 jenkins + +RUN useradd -r -u 111 -g 116 -d /var/lib/jenkins -M -N jenkins diff --git a/alpine/Dockerfile b/alpine/Dockerfile index 86688aa..f0b1d50 100644 --- a/alpine/Dockerfile +++ b/alpine/Dockerfile @@ -4,4 +4,6 @@ RUN apk update ; apk add --no-cache --allow-untrusted ca-certificates curl bash RUN apk add --no-cache --upgrade grep -RUN useradd -r -u 111 -g 116 -d /var/lib/jenkins -M jenkins +RUN groupadd -r -g 116 jenkins + +RUN useradd -r -u 111 -g 116 -d /var/lib/jenkins -M -N jenkins