Skip to content

Commit

Permalink
allow builder to run everything via sudo
Browse files Browse the repository at this point in the history
  • Loading branch information
kopp committed Mar 26, 2023
1 parent fdeedcd commit f0894c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ RUN \
pacman -S --noconfirm sudo && \
groupadd builder && \
useradd -m -g builder builder && \
echo 'builder ALL = NOPASSWD: /usr/bin/pacman' > /etc/sudoers.d/builder_pacman
echo 'builder ALL = NOPASSWD: ALL' > /etc/sudoers.d/builder_pacman


USER builder
Expand All @@ -44,7 +44,7 @@ RUN \
USER root
# Note: Github actions require the dockerfile to be run as root, so do not
# switch back to the unprivileged user.
# Use `sudo -u <user> <command>` to run a command as this user.
# Use `sudo --user <user> <command>` to run a command as this user.

# Register the local repository with pacman.
RUN \
Expand Down

0 comments on commit f0894c7

Please sign in to comment.