Skip to content

Files

Latest commit

 

History

History
24 lines (15 loc) · 653 Bytes

DL3018.md

File metadata and controls

24 lines (15 loc) · 653 Bytes

Pattern: Missing version pinning for apk add

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 apk --no-cache add s3cmd

Example of correct code:

RUN apk --no-cache add s3cmd=1.1.0

Further Reading