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 9f91b0f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion debian/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 3 additions & 1 deletion ubuntu/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 9f91b0f

Please sign in to comment.