From 479f06982b35f93c26263dcc1ced82da9b55b578 Mon Sep 17 00:00:00 2001 From: Cabillot Julien Date: Wed, 16 May 2018 10:44:50 -0400 Subject: [PATCH] 17.10 -> 18.04 + uniformisation avec les autres ubuntus --- Dockerfile | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/Dockerfile b/Dockerfile index e6a62f6..8f0a1da 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,26 +1,26 @@ -FROM "ubuntu:17.10" +FROM "ubuntu:18.04" # Il n'est pas possible d'utiliser alpine, # cela pose problème avec le script de post-install qui dépends vraiment de glibc. # Il faudrait alors partir sur une full recompilation de calibre (sans certitudes sur le bon fonctionnement). LABEL maintainer="Julien Cabillot " -ENV DEBIAN_FRONTEND="noninteractive" - -RUN apt-get -qq update && \ - apt-get -qqy install wget python xz-utils xvfb libfontconfig libxrender1 libxcomposite1 && \ +RUN export DEBIAN_FRONTEND="noninteractive" && \ + export BUILD_PACKAGES="wget xz-utils" && \ + export RUNTIME_PACKAGES="python xvfb libfontconfig libxrender1 libxcomposite1" && \ + apt-get -qq update && \ + apt-get -qq --yes install ${BUILD_PACKAGES} ${RUNTIME_PACKAGES} && \ wget -nv -O- https://download.calibre-ebook.com/linux-installer.py | python -c "import sys; main=lambda:sys.stderr.write('Download failed\n'); exec(sys.stdin.read()); main()" && \ - apt-get -qqy remove --purge wget xz-utils && \ - apt-get -qqy autoremove --purge && \ - apt-get -qqy clean all && \ + apt-get -qq --yes remove --purge ${BUILD_PACKAGES} && \ + apt-get -qq --yes autoremove --purge && \ + apt-get -qq --yes clean all && \ rm -rf "/usr/share/doc/"* \ "/var/cache/"* \ "/var/lib/apt/lists/"* \ "/usr/src/"* \ "/var/cache/"* \ - "/var/log/"{apt/*,dpkg.log} \ + "/var/log/"{apt/*,dpkg.log} \ "/tmp/"* - # Add Tini ENV "TINI_VERSION" "v0.16.1" ADD "https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini" "/tini"