Skip to content
Lukas Martinelli edited this page Jan 11, 2016 · 2 revisions

Avoid additional packages by specifying --no-install-recommends.

Problematic code:

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

Correct code:

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

Rationale:

Avoid installing additional packages that you did not explicitly want.

You can’t perform that action at this time.