Skip to content

Commit

Permalink
fix: initialize build user early
Browse files Browse the repository at this point in the history
  • Loading branch information
trevnels committed Jan 29, 2024
1 parent 7f4203c commit af0cbbe
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ LABEL com.github.containers.toolbox="true" \
COPY extra-packages /
COPY aur-packages /

RUN paru -Syu --noconfirm
RUN paru -Syu --noconfirm && \
useradd -m --shell=/bin/bash build && usermod -L build && \
echo "build ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers && \
echo "root ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers

RUN paru -S --noconfirm --needed $(cat /extra-packages)

USER build
Expand Down

0 comments on commit af0cbbe

Please sign in to comment.