2026-06-11 01:58:40 +00:00
|
|
|
FROM ubuntu:26.04
|
2017-12-27 11:29:43 +01:00
|
|
|
# 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).
|
2018-05-06 16:27:02 +00:00
|
|
|
LABEL maintainer="Julien Cabillot <dockerimages@cabillot.eu>"
|
2017-12-27 09:57:45 +01:00
|
|
|
|
2018-05-16 10:44:50 -04:00
|
|
|
RUN export DEBIAN_FRONTEND="noninteractive" && \
|
|
|
|
|
apt-get -qq update && \
|
2026-06-11 02:08:44 +00:00
|
|
|
apt-get -qq --yes install python3 xvfb libfontconfig1 libxrender1 libxcomposite1 libegl1 libopengl0 libxcb-cursor0 calibre && \
|
2026-06-11 01:49:07 +00:00
|
|
|
ln -sf /usr/bin/python3 /usr/bin/python && \
|
2018-05-16 10:44:50 -04:00
|
|
|
apt-get -qq --yes clean all && \
|
2018-05-14 13:54:57 -04:00
|
|
|
rm -rf "/usr/share/doc/"* \
|
|
|
|
|
"/usr/src/"* \
|
|
|
|
|
"/var/cache/"* \
|
2018-05-18 15:13:10 -04:00
|
|
|
"/var/lib/apt/lists/"* \
|
2018-05-16 10:44:50 -04:00
|
|
|
"/var/log/"{apt/*,dpkg.log} \
|
2018-05-19 12:11:33 -04:00
|
|
|
"/tmp/"* && \
|
2018-05-19 14:22:22 -04:00
|
|
|
useradd -m "calibre"
|
2018-05-14 13:54:57 -04:00
|
|
|
|
2018-05-18 15:13:10 -04:00
|
|
|
# TODO: ne pas faire tourner en root si possible
|
|
|
|
|
|
2017-12-27 09:57:45 +01:00
|
|
|
# Add Tini
|
|
|
|
|
ENV "TINI_VERSION" "v0.16.1"
|
|
|
|
|
ADD "https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini" "/tini"
|
|
|
|
|
RUN chmod +x "/tini"
|
|
|
|
|
ENTRYPOINT ["/tini", "--"]
|
|
|
|
|
|
2018-05-19 12:11:33 -04:00
|
|
|
USER "calibre"
|
|
|
|
|
|
2017-12-27 11:29:43 +01:00
|
|
|
CMD [ "bash", "-c", "xvfb-run calibredb add --recurse --one-book-per-directory --library-path /export/ /ebooks/*/" ]
|