Skip to content

Commit

Permalink
feat: create .ssh and .gnupg folders in HOME
Browse files Browse the repository at this point in the history
  • Loading branch information
khos2ow committed Jan 8, 2025
1 parent ef3e05f commit 50c417a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
8 changes: 8 additions & 0 deletions debian/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
8 changes: 8 additions & 0 deletions ubuntu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 50c417a

Please sign in to comment.