Ensure to run yum clean command

After yum install, the image contains all the packages cacehd data, so to reduce the image size, add yum clean all command.

Risk Level: informational
Platform: Docker
Spectral Rule ID: DOCKR061

REMEDIATION

Add yum clean all command.

FROM fedora:36
+ RUN yum clean all

Read more:

  • TBD