Docker

Docker

Made by DeepSource

Avoid additional packages by specifying --no-install-recommends DOK-DL3015

Anti-pattern
Major

Avoid installing additional packages that you do not explicitly want.

Bad Practice

FROM debian:buster
RUN apt-get install -y python=2.7

Recommended

FROM debian:buster
RUN apt-get install -y --no-install-recommends python=2.7