1 2 3 4 5 6 7 8 9 10 11 12 13
FROM centos:7 RUN yum -y groupinstall 'Development Tools' RUN yum -y install centos-packager RUN yum -y install sudo 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