Skip to content

Files

Latest commit

 

History

History
25 lines (16 loc) · 613 Bytes

DL3037.md

File metadata and controls

25 lines (16 loc) · 613 Bytes

Pattern: Missing version for zypper install

Issue: -

Description

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.

Example of incorrect code:

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

Example of correct code:

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

Further Reading