Merge pull request #479 from yuvipanda/quiet-apt

Make apt be quieter
pull/481/head
Min RK 2018-11-29 17:05:41 +01:00 zatwierdzone przez GitHub
commit fdcfb81689
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 14 dodań i 11 usunięć

Wyświetl plik

@ -16,10 +16,10 @@ FROM buildpack-deps:bionic
ENV DEBIAN_FRONTEND=noninteractive
# Set up locales properly
RUN apt-get update && \
apt-get install --yes --no-install-recommends locales && \
apt-get purge && \
apt-get clean && \
RUN apt-get update -qq && \
apt-get install -qq --yes --no-install-recommends locales && \
apt-get purge -qq && \
apt-get clean -qq && \
rm -rf /var/lib/apt/lists/*
RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && \
@ -49,23 +49,26 @@ RUN wget --quiet -O - https://deb.nodesource.com/gpgkey/nodesource.gpg.key | ap
echo "deb https://deb.nodesource.com/node_10.x $DISTRO main" >> /etc/apt/sources.list.d/nodesource.list && \
echo "deb-src https://deb.nodesource.com/node_10.x $DISTRO main" >> /etc/apt/sources.list.d/nodesource.list
RUN apt-get update && \
apt-get install --yes --no-install-recommends \
# Base package installs are not super interesting to users, so hide their outputs
# If install fails for some reason, errors will still be printed
RUN apt-get update -qq && \
apt-get install -qq --yes --no-install-recommends \
{% for package in base_packages -%}
{{ package }} \
{% endfor -%}
&& apt-get purge && \
apt-get clean && \
&& apt-get purge -qq && \
apt-get clean -qq && \
rm -rf /var/lib/apt/lists/*
# This apt-get install is *not* quiet, so users see their packages being installed
{% if packages -%}
RUN apt-get update && \
RUN apt-get update -qq && \
apt-get install --yes \
{% for package in packages -%}
{{ package }} \
{% endfor -%}
&& apt-get purge && \
apt-get clean && \
&& apt-get purge -qq && \
apt-get clean -qq && \
rm -rf /var/lib/apt/lists/*
{% endif -%}