From af0cbbebca14cf1015d9974cab3556e5aff7ef67 Mon Sep 17 00:00:00 2001 From: trevnels <25140503+trevnels@users.noreply.github.com> Date: Sun, 28 Jan 2024 23:18:18 -0500 Subject: [PATCH] fix: initialize build user early --- Containerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Containerfile b/Containerfile index ca444c0..f54f854 100644 --- a/Containerfile +++ b/Containerfile @@ -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