Skip to content

Files

Latest commit

 

History

History
23 lines (14 loc) · 421 Bytes

DL3040.md

File metadata and controls

23 lines (14 loc) · 421 Bytes

Pattern: Missing dnf clean all for dnf

Issue: -

Description

Clean cached package data after installation to reduce image size.

Example of incorrect code:

RUN dnf install -y httpd-2.24.2

Example of correct code:

RUN dnf install -y httpd-2.24.2 && dnf clean all

Further Reading