From e409c7c8485849672b6b6f17614f436277678078 Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Tue, 30 Jul 2024 11:18:05 +0200 Subject: [PATCH] set user id to 1000 --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0031773..b0949af 100644 --- a/Dockerfile +++ b/Dockerfile @@ -37,8 +37,8 @@ RUN apt-get update \ # Update the package list, install sudo, create a non-root user, and grant password-less sudo permissions # https://dev.to/izackv/running-a-docker-container-with-a-custom-non-root-user-syncing-host-and-container-permissions-26mb # hadolint ignore=DL3008 -RUN addgroup --gid 2000 nonroot && \ - adduser --uid 2000 --gid 2000 --disabled-password --gecos "" ansible-dev && \ +RUN addgroup --gid 1000 ansible-dev && \ + adduser --uid 1000 --gid 2000 --disabled-password --gecos "" ansible-dev && \ echo 'ansible-dev ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers # Set the non-root user as the default user