dockerfilelint
dockerfilelint copied to clipboard
apt-get --no-install-recommends
The --no-install-recommends is not found in case something like this is used:
apt-get -y install perl --no-install-recommends
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"]