1
0

Add yum/dnf to centos8 image

This commit is contained in:
dump_stack() 2023-05-11 08:04:13 +00:00
parent 5f0749155a
commit cc470d2105
Signed by: dump_stack
GPG Key ID: BE44DA8C062D87DC

View File

@ -19,7 +19,7 @@ RUN cp /etc/yum.repos.d/* $TMPDIR/etc/yum.repos.d/
RUN yum --installroot=$TMPDIR \ RUN yum --installroot=$TMPDIR \
--releasever=8 \ --releasever=8 \
-y install openssh-server openssh-clients -y install openssh-server openssh-clients yum dnf
RUN chroot $TMPDIR /bin/sh -c 'useradd -m user' RUN chroot $TMPDIR /bin/sh -c 'useradd -m user'
RUN sed -i 's/root:\*:/root::/' $TMPDIR/etc/shadow RUN sed -i 's/root:\*:/root::/' $TMPDIR/etc/shadow