Skip to content

Files

Latest commit

 

History

History
27 lines (18 loc) · 913 Bytes

DL3013.md

File metadata and controls

27 lines (18 loc) · 913 Bytes

Pattern: Missing version pinning for pip

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 pip install django
RUN pip install https://github.com/Banno/carbon/tarball/0.9.x-fix-events-callback

Example of correct code:

RUN pip install django==1.9
RUN pip install git+https://github.com/Banno/carbon@0.9.15

Further Reading