From f0894c724cd8e95db761fff141d0a058bd70795a Mon Sep 17 00:00:00 2001 From: Michael Kopp Date: Sun, 26 Mar 2023 21:04:28 +0200 Subject: [PATCH] allow builder to run everything via sudo --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7b8e5f9..424727e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 @@ -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 ` to run a command as this user. +# Use `sudo --user ` to run a command as this user. # Register the local repository with pacman. RUN \