Skip to content

Files

Latest commit

 

History

History
24 lines (15 loc) · 655 Bytes

DL3008.md

File metadata and controls

24 lines (15 loc) · 655 Bytes

Pattern: Missing version pinning for apt-get 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:

RUN apt-get install python

Example of correct code:

RUN apt-get install python=2.7

Further Reading