From b58323e582a8edc7dd3998cae262664616c86f3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20V=C3=A9ril?= Date: Wed, 2 Jun 2021 17:34:15 +0200 Subject: [PATCH] Combine unminimize and apt-get and remove apt/lists --- Dockerfile | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 04c397f..2928682 100644 --- a/Dockerfile +++ b/Dockerfile @@ -48,14 +48,11 @@ laboratory.url="http://www.lcpq.ups-tlse.fr/" ARG user=user # This argument define timezone for tzdata requierd by qp_run ARG tz=Etc/UTC -# install manpages and other requirements to an interactive session -RUN ["/bin/sh","-c","yes | unminimize"] -# Install all requierd packages -RUN apt-get update && \ -DEBIAN_FRONTEND=noninteractive apt-get install \ +# Unminimize and install all requierd packages +RUN yes | unminimize && apt-get update && \ +DEBIAN_FRONTEND=noninteractive apt-get install -y \ python htop vim emacs-nox screen tmux less wget curl tzdata man manpages-posix lsb-release \ - -y && \ -apt-get autoremove && apt-get clean + && rm -rf /var/lib/apt/lists/* # Reconfigure tzdata with the good timezone RUN echo $tz > /etc/timezone && rm -rf /etc/localtime && echo "set mouse=" > ~/.vimrc RUN dpkg-reconfigure -f noninteractive tzdata