Description
yum install can ask for confirmation. A CI build can stop or fail while waiting for a reply.
Potential impact
An interrupted install delays the image needed for deployment or recovery.
Remediation
Use yum install -y or --assumeyes and keep package signature verification enabled. Add && yum clean all in the same RUN step. Check the build log if installation fails because of a missing package, repository, or network connection.
Examples
This example uses CentOS 7. Use a supported base image and a repository that provides nginx for your builds.
Before
dockerfile
FROM centos:7
RUN yum install nginx
After
dockerfile
FROM centos:7
RUN yum install -y nginx \
&& yum clean all