Open bwoolf1 opened 3 years ago
To do this in a Dockerfile, add this:
USER root
RUN yum -y update-minimal --security --sec-severity=Important --sec-severity=Critical && yum clean all
USER default
Sean Sundberg explains:
The one thing to be aware of is
yum
must be run asroot
. The UBI image switches to a user calleddefault
so you will need to switch users in between commands.
Learned today that the minimal UBIs don't have yum
built in. We're supposed to use microdnf
instead.
USING RED HAT UNIVERSAL BASE IMAGES (STANDARD, MINIMAL, AND RUNTIMES)
Red Hat components in the container image cannot contain any critical or important vulnerabilities, as defined at https://access.redhat.com/security/updates/classification
Red Hat Container Certification requires that an image must have the latest security patches available at the time it was built. This is accomplished by running this command: