diff --git a/Dockerfile b/Dockerfile index 349e220..f23f86e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,6 +24,7 @@ ENV PHPIZE_DEPS \ g++ \ gcc \ libc-dev \ + cmake \ make \ pkg-config \ re2c @@ -33,8 +34,6 @@ ENV PHRASEANET_DEPS \ automake \ git \ ghostscript \ - gpac \ - imagemagick \ inkscape \ libfreetype6-dev \ libmagickwand-dev \ @@ -50,7 +49,6 @@ ENV PHRASEANET_DEPS \ mcrypt \ unoconv \ unzip \ - poppler-utils \ libreoffice-base-core \ libreoffice-impress \ libreoffice-calc \ @@ -81,11 +79,22 @@ ENV PHRASEANET_DEPS \ libfreetype6-dev \ libldap2-dev \ libdc1394-dev \ - nano + nano \ + libfontconfig-dev \ + libnss3-dev \ + libgpgmepp-dev \ + qt6-base-dev \ + qtbase5-dev \ + libnss3-dev \ + libgpgmepp-dev \ + libcairo2-dev \ + libboost-dev # persistent / runtime deps + RUN set -eux; \ - apt-get update; \ + echo "deb http://deb.debian.org/debian bullseye-backports main" > /etc/apt/sources.list.d/backport.list \ + && apt-get update; \ apt-get install -y --no-install-recommends \ $PHPIZE_DEPS \ ca-certificates \ @@ -94,6 +103,20 @@ RUN set -eux; \ $PHRASEANET_DEPS \ ; \ rm -rf /var/lib/apt/lists/* + +RUN set -eux; \ + mkdir /tmp/poppler \ + && cd /tmp/poppler \ + && wget https://poppler.freedesktop.org/poppler-23.12.0.tar.xz \ + && tar -xvf poppler-23.12.0.tar.xz \ + && cd poppler-23.12.0 \ + && mkdir build \ + && cd build \ + && git clone https://gitlab.freedesktop.org/poppler/test.git \ + && cmake -DENABLE_LIBCURL=OFF -DENABLE_GPGME=OFF -DTESTDATADIR=./test -DCMAKE_INSTALL_MANDIR:PATH=/usr/local/share/man .. \ + && make \ + && make install + RUN set -eux; \ mkdir /tmp/icu \ && cd /tmp/icu \ @@ -413,6 +436,7 @@ RUN echo "PHRASEANET : BUILDING AND INSTALLING FFMPEG" \ ) RUN echo "PHRASEANET : FINALIZING BUILD AND CLEANING" \ + && apt-get remove autoconf dpkg-dev g++ gcc libc-dev pkg-config re2c wget automake -y \ && apt-get clean \ && rm -rf /var/lib/apt/lists \ && rm -rf /tmp/* \