Pattern: Missing version for dnf install -y <package>-<version>
Issue: -
Version pinning forces the build to retrieve a particular version regardless of what’s in the cache. This technique can also reduce failures due to unanticipated changes in required packages.
Example of incorrect code:
RUN dnf install -y httpd && dnf clean all
Example of correct code:
RUN dnf install -y httpd-2.24.2 && dnf clean all