1 2 3 4 5 6 7 8 9 10 11 12
FROM quay.io/centos/centos:stream9 RUN dnf -y group install 'Development Tools' RUN dnf -y install sudo RUN dnf config-manager --set-enabled crb RUN useradd -s /bin/bash -m rpm RUN echo >> /etc/sudoers RUN echo "rpm ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers USER rpm WORKDIR /home/rpm