Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: create .ssh and .gnupg folders in HOME #14

Merged
merged 1 commit into from
Jan 8, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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