Use apt-get instead of apt in Dockerfiles, also --no-install-recommends

apt is intended for humans, not scripts.

--no-install-recommends improves build time by avoiding to install
unneeded packages.
This commit is contained in:
Robin Schneider 2019-12-31 16:40:15 +01:00
parent f6a4a2127b
commit f8e49ea3f4
No known key found for this signature in database
GPG key ID: A81E8006DC95EFE6
10 changed files with 30 additions and 20 deletions

View file

@ -45,8 +45,9 @@ ARG TERM=xterm-256color
RUN echo $TERM
RUN apt update -y \
&& apt install -y \
RUN apt-get update \
&& apt-get install -y \
--no-install-recommends \
curl \
tar
{% endif %}

View file

@ -16,8 +16,9 @@ ARG TERM=xterm-256color
RUN echo $TERM
RUN apt update -y \
&& apt install -y \
RUN apt-get update \
&& apt-get install -y \
--no-install-recommends \
curl \
tar

View file

@ -16,8 +16,9 @@ ARG TERM=xterm-256color
RUN echo $TERM
RUN apt update -y \
&& apt install -y \
RUN apt-get update \
&& apt-get install -y \
--no-install-recommends \
curl \
tar

View file

@ -16,8 +16,9 @@ ARG TERM=xterm-256color
RUN echo $TERM
RUN apt update -y \
&& apt install -y \
RUN apt-get update \
&& apt-get install -y \
--no-install-recommends \
curl \
tar

View file

@ -16,8 +16,9 @@ ARG TERM=xterm-256color
RUN echo $TERM
RUN apt update -y \
&& apt install -y \
RUN apt-get update \
&& apt-get install -y \
--no-install-recommends \
curl \
tar

View file

@ -16,8 +16,9 @@ ARG TERM=xterm-256color
RUN echo $TERM
RUN apt update -y \
&& apt install -y \
RUN apt-get update \
&& apt-get install -y \
--no-install-recommends \
curl \
tar

View file

@ -16,8 +16,9 @@ ARG TERM=xterm-256color
RUN echo $TERM
RUN apt update -y \
&& apt install -y \
RUN apt-get update \
&& apt-get install -y \
--no-install-recommends \
curl \
tar

View file

@ -16,8 +16,9 @@ ARG TERM=xterm-256color
RUN echo $TERM
RUN apt update -y \
&& apt install -y \
RUN apt-get update \
&& apt-get install -y \
--no-install-recommends \
curl \
tar

View file

@ -16,8 +16,9 @@ ARG TERM=xterm-256color
RUN echo $TERM
RUN apt update -y \
&& apt install -y \
RUN apt-get update \
&& apt-get install -y \
--no-install-recommends \
curl \
tar

View file

@ -16,8 +16,9 @@ ARG TERM=xterm-256color
RUN echo $TERM
RUN apt update -y \
&& apt install -y \
RUN apt-get update \
&& apt-get install -y \
--no-install-recommends \
curl \
tar