Dockerfile: apt install with --no-install-recommends

This commit is contained in:
Tim Hockin 2021-05-27 10:01:35 -07:00
parent 121999d92c
commit b8c2e1a03d
1 changed files with 3 additions and 2 deletions

View File

@ -53,12 +53,13 @@ RUN echo "deb http://deb.debian.org/debian/ buster-backports main contrib" > \
/etc/apt/sources.list.d/backports.list
RUN apt-get update
RUN apt-get -y upgrade
RUN apt-get -y install \
RUN apt-get -y install --no-install-recommends \
ca-certificates \
coreutils \
socat \
openssh-client
RUN apt-get -y -t buster-backports install git
RUN apt-get -y -t buster-backports install --no-install-recommends \
git
RUN rm -rf /var/lib/apt/lists/*
# By default we will run as this user...