Skip to content

Commit

Permalink
Move rpm setcaps to later layer
Browse files Browse the repository at this point in the history
  • Loading branch information
amezin committed Nov 17, 2024
1 parent 77a3da4 commit 1d9a965
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 @@ -33,12 +33,12 @@ RUN dnf update -y && \
ImageMagick-libs \
--nodocs \
--setopt install_weak_deps=False \
&& rpm --setcaps shadow-utils \
&& 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
&& chmod u+rw /etc/shadow \
&& rpm --setcaps shadow-utils

VOLUME /var/lib/containers
VOLUME /home/github-actions
Expand Down

0 comments on commit 1d9a965

Please sign in to comment.