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