Skip to content

Commit

Permalink
Add a user and allow passwordless sudo
Browse files Browse the repository at this point in the history
  • Loading branch information
amezin committed Sep 8, 2024
1 parent f3c511d commit d9484c7
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d9484c7

Please sign in to comment.