dockerfilelint icon indicating copy to clipboard operation
dockerfilelint copied to clipboard

apt-get --no-install-recommends

Open martinlobe opened this issue 8 years ago • 1 comments

The --no-install-recommends is not found in case something like this is used: apt-get -y install perl --no-install-recommends

martinlobe avatar Jul 09 '17 09:07 martinlobe

Just adding info:

Clearly replicated on https://www.fromlatest.io/#/ with the following:

# This is a sample Dockerfile with a couple of problems.
# Paste your Dockerfile here.

FROM ubuntu:latest
RUN apt-get update && \
    apt-get -y install perl --no-install-recommends && \
    rm -rf /var/lib/apt/lists/*

WORKDIR /usr/src/hello
copy . /usr/src/hello

RUN make clean hello test

CMD ["./hello"]

mtheoryx avatar Oct 17 '17 20:10 mtheoryx