From 2b4136aa9770b5db5fc6d4aa8a69a9803d8fb362 Mon Sep 17 00:00:00 2001 From: Jagan Teki Date: Fri, 16 Aug 2024 07:42:49 +0530 Subject: [PATCH] Revert "user build" This reverts commit 3fc3cda77cac91061fc33bad39e2cf5d85257029. --- Dockerfile-ubuntu | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Dockerfile-ubuntu b/Dockerfile-ubuntu index 39d247d..d82cd63 100644 --- a/Dockerfile-ubuntu +++ b/Dockerfile-ubuntu @@ -72,10 +72,9 @@ RUN apt-get update && apt-get install -y \ apt-get clean && \ rm -rf /var/lib/apt/lists/* -RUN echo "build ALL=NOPASSWD: ALL" > /etc/sudoers.d/build-nopasswd && \ - chmod 660 /etc/sudoers.d/build-nopasswd - -RUN groupadd build -g 30000 && \ - useradd build -u 30000 -g 30000 --create-home --home-dir /build +RUN useradd -ms /bin/bash build +RUN usermod -aG sudo build +RUN echo "build ALL=(ALL) NOPASSWD:ALL" > /etc/sudoers.d/build USER build +WORKDIR /home/build