Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 498 Bytes

DL3036.md

File metadata and controls

25 lines (16 loc) · 498 Bytes

Pattern: Missing use of zypper clean

Issue: -

Description

This allows to reduce layer and image size by deleting unneeded caches after running zypper.

Example of incorrect code:

FROM opensuse/leap:15.2
RUN zypper install -y httpd=2.4.46

Example of correct code:

FROM opensuse/leap:15.2
RUN zypper install -y httpd=2.4.46 && zypper clean

Further Reading