17.10 -> 18.04 + uniformisation avec les autres ubuntus
This commit is contained in:
parent
01dbfedf90
commit
479f06982b
18
Dockerfile
18
Dockerfile
@ -1,17 +1,18 @@
|
||||
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 <dockerimages@cabillot.eu>"
|
||||
|
||||
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/"* \
|
||||
@ -20,7 +21,6 @@ RUN apt-get -qq update && \
|
||||
"/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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user