Skip to content
Moritz Röhrich edited this page Oct 21, 2020 · 1 revision

zypper clean missing after zypper use

Problematic code:

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

Correct code:

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

Rationale:

Reduce layer and image size by deleting unneeded caches after running zypper.

Clone this wiki locally