From d9484c770fcbf4fc9785d69fda2f4e1d634c06a3 Mon Sep 17 00:00:00 2001 From: Aleksandr Mezin Date: Sat, 7 Sep 2024 11:53:00 +0300 Subject: [PATCH] Add a user and allow passwordless sudo --- Dockerfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Dockerfile b/Dockerfile index d852508..68c2d4c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -33,7 +33,12 @@ RUN dnf update -y && \ --setopt install_weak_deps=False \ && dnf clean all -y +RUN adduser -d /home/github-actions -m -u 1042 -U -G users,adm github-actions \ + && echo "ALL ALL=NOPASSWD: ALL" >/etc/sudoers.d/nopasswd \ + && chmod u+rw /etc/shadow + VOLUME /var/lib/containers +VOLUME /home/github-actions # Avoid D-Bus access ENV GTK_A11Y=none