Ensure 'yum install' has pinned version

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.

Risk Level: medium
Platform: Docker
Spectral Rule ID: DOCKR065

REMEDIATION

Add pinned version for yum install.

FROM fedora:36
- RUN yum install httpd
+ RUN yum install httpd-2.4.54

Read more: