diff --git a/debian/Dockerfile b/debian/Dockerfile index f47c050..acf8edc 100644 --- a/debian/Dockerfile +++ b/debian/Dockerfile @@ -6,7 +6,9 @@ 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 && adduser regolith sudo -USER regolith +RUN useradd -m -u 1000 regolith && \ + adduser regolith sudo && \ + echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers +USER regolith WORKDIR /build diff --git a/ubuntu/Dockerfile b/ubuntu/Dockerfile index a61adde..bf748b9 100644 --- a/ubuntu/Dockerfile +++ b/ubuntu/Dockerfile @@ -6,8 +6,10 @@ ENV DEBIAN_FRONTEND="noninteractive" 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 && adduser regolith sudo -USER regolith +RUN if id ubuntu >/dev/null 2>&1; then userdel -r ubuntu; fi && \ + useradd -m -u 1000 regolith && \ + adduser regolith sudo && \ + echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers +USER regolith WORKDIR /build