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