From 50c417a86601fcb8cc46579cf1007706f894f9fe Mon Sep 17 00:00:00 2001 From: Khosrow Moossavi Date: Wed, 8 Jan 2025 14:41:48 -0500 Subject: [PATCH] feat: create .ssh and .gnupg folders in HOME --- debian/Dockerfile | 8 ++++++++ ubuntu/Dockerfile | 8 ++++++++ 2 files changed, 16 insertions(+) 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