From cbf898355f60a8bd1868709f9b2ba689059a01e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20V=C3=A9ril?= Date: Tue, 4 May 2021 12:29:00 +0200 Subject: [PATCH] Improve apt --- Dockerfile | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index e42f714..bc06269 100644 --- a/Dockerfile +++ b/Dockerfile @@ -7,12 +7,11 @@ ARG tz=Etc/UTC # enable manpages installation RUN sed -i 's,^path-exclude=/usr/share/man/,#path-exclude=/usr/share/man/,' /etc/dpkg/dpkg.cfg.d/excludes # Install all requierd packages -RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install apt-utils -y \ +RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y \ # Git for download quantum package git \ # All necessary packages to compile and run quantum package -curl wget python gfortran gcc g++ build-essential unzip liblapack-dev pkg-config autoconf zlib1g zlib1g-dev libgmp-dev \ --y +curl wget python gfortran gcc g++ build-essential unzip liblapack-dev pkg-config autoconf zlib1g zlib1g-dev libgmp-dev # Add user and switch to this user RUN adduser --disabled-password --gecos '' builder USER builder @@ -55,9 +54,9 @@ ARG tz=Etc/UTC RUN sed -i 's,^path-exclude=/usr/share/man/,#path-exclude=/usr/share/man/,' /etc/dpkg/dpkg.cfg.d/excludes # Install all requierd packages RUN apt-get update && \ -DEBIAN_FRONTEND=noninteractive apt-get install \ +DEBIAN_FRONTEND=noninteractive apt-get install -y \ python htop vim emacs screen tmux less wget curl tzdata man manpages-posix lsb-release \ - -y && \ +&& \ apt-get autoremove && apt-get clean # Reconfigure tzdata with the good timezone RUN echo $tz > /etc/timezone && rm -rf /etc/localtime && echo "set mouse=" > ~/.vimrc