From ec4c6c341b720b32567b0552f1a55972766d8be8 Mon Sep 17 00:00:00 2001 From: Khosrow Moossavi Date: Wed, 8 Jan 2025 11:45:06 -0500 Subject: [PATCH] feat: add regolith user to sudoers --- debian/Dockerfile | 2 +- ubuntu/Dockerfile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/debian/Dockerfile b/debian/Dockerfile index 4f4d285..f47c050 100644 --- a/debian/Dockerfile +++ b/debian/Dockerfile @@ -6,7 +6,7 @@ ENV DEBIAN_FRONTEND="noninteractive" ARG PACKAGES=${PACKAGES:-sudo} RUN apt update -qq && apt install --no-install-recommends -y $PACKAGES -RUN useradd -m -u 1000 regolith +RUN useradd -m -u 1000 regolith && adduser regolith sudo USER regolith WORKDIR /build diff --git a/ubuntu/Dockerfile b/ubuntu/Dockerfile index 71706b7..a61adde 100644 --- a/ubuntu/Dockerfile +++ b/ubuntu/Dockerfile @@ -7,7 +7,7 @@ ARG PACKAGES=${PACKAGES:-sudo} RUN apt update -qq && apt install --no-install-recommends -y $PACKAGES RUN if id ubuntu >/dev/null 2>&1; then userdel -r ubuntu; fi -RUN useradd -m -u 1000 regolith +RUN useradd -m -u 1000 regolith && adduser regolith sudo USER regolith WORKDIR /build