Skip to content

Files

Latest commit

 

History

History
26 lines (17 loc) · 559 Bytes

DL3015.md

File metadata and controls

26 lines (17 loc) · 559 Bytes

Pattern: Missing --no-install-recommends for RUN apt-get

Issue: -

Description

Avoid installing additional packages that you did not explicitly want.

Example of incorrect code:

FROM busybox
RUN apt-get install -y python=2.7

Example of correct code:

FROM busybox
RUN apt-get install -y --no-install-recommends python=2.7

Further Reading