diff --git a/debian/Dockerfile b/debian/Dockerfile index 9a74955..afbdf3a 100644 --- a/debian/Dockerfile +++ b/debian/Dockerfile @@ -8,7 +8,9 @@ RUN apt update -qq && apt install --no-install-recommends -y $PACKAGES RUN useradd -m -u 1001 regolith && \ adduser regolith sudo && \ - echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers + echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers && \ + mkdir -p /home/regolith/.ssh/ && \ + mkdir -p /home/regolith/.gnupg/ USER regolith WORKDIR /build diff --git a/ubuntu/Dockerfile b/ubuntu/Dockerfile index a601779..5581db5 100644 --- a/ubuntu/Dockerfile +++ b/ubuntu/Dockerfile @@ -9,7 +9,9 @@ RUN apt update -qq && apt install --no-install-recommends -y $PACKAGES RUN if id ubuntu >/dev/null 2>&1; then userdel -r ubuntu; fi && \ useradd -m -u 1001 regolith && \ adduser regolith sudo && \ - echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers + echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers && \ + mkdir -p /home/regolith/.ssh/ && \ + mkdir -p /home/regolith/.gnupg/ USER regolith WORKDIR /build