diff --git a/debian/Dockerfile b/debian/Dockerfile index 9a74955..a0721b3 100644 --- a/debian/Dockerfile +++ b/debian/Dockerfile @@ -10,5 +10,13 @@ RUN useradd -m -u 1001 regolith && \ adduser regolith sudo && \ echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers +RUN mkdir -p /home/regolith/.ssh/ && \ + chown -R regolith /home/regolith/.ssh/ && \ + chmod 700 /home/regolith/.ssh + +RUN mkdir -p /home/regolith/.gnupg/ && \ + chown -R regolith /home/regolith/.gnupg/ && \ + chmod 700 /home/regolith/.gnupg + USER regolith WORKDIR /build diff --git a/ubuntu/Dockerfile b/ubuntu/Dockerfile index a601779..ab14460 100644 --- a/ubuntu/Dockerfile +++ b/ubuntu/Dockerfile @@ -11,5 +11,13 @@ RUN if id ubuntu >/dev/null 2>&1; then userdel -r ubuntu; fi && \ adduser regolith sudo && \ echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers +RUN mkdir -p /home/regolith/.ssh/ && \ + chown -R regolith /home/regolith/.ssh/ && \ + chmod 700 /home/regolith/.ssh + +RUN mkdir -p /home/regolith/.gnupg/ && \ + chown -R regolith /home/regolith/.gnupg/ && \ + chmod 700 /home/regolith/.gnupg + USER regolith WORKDIR /build