Microdnf
Contents
Microdnf
https://www.redhat.com/en/blog/introducing-red-hat-enterprise-linux-atomic-base-image
Introducing the Red Hat Enterprise Linux Atomic Base Image
With YUM (Before)
FROM registry.access.redhat.com/rhel7
RUN yum-config-manager --enable rhel-7-server-rpms
RUN yum install -y --setopt=tsflags=nodocs java-1.8.0-openjdk-headless ;\\
yum clean all
With Microdnf, the Atomic Base Image this becomes:
FROM registry.access.redhat.com/rhel7-atomic
RUN microdnf --enablerepo=rhel-7-server-rpms \\
install java-1.8.0-openjdk-headless --nodocs ;\\
microdnf clean all
Source: commit 02fa883 in My-Notes.