From 72b24113b777813915aedb0c7cf326849b06f8e4 Mon Sep 17 00:00:00 2001 From: Qweritos Date: Wed, 18 Sep 2024 11:50:10 +0000 Subject: [PATCH] bundle with php-pdlib --- Dockerfile | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/Dockerfile b/Dockerfile index a96ffd7..ecc6425 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,8 +8,29 @@ RUN apt update && apt install -y --no-install-recommends \ sudo \ nano \ ffmpeg \ + # pdlib deps + git libx11-dev libopenblas-dev liblapack-dev cmake \ + libbz2-dev \ && rm -rf /var/lib/apt/lists/* ENV LD_LIBRARY_PATH=/usr/lib/mesa-diverted/x86_64-linux-gnu/ RUN /usr/sbin/update-nvidia-cudnn -u + +# install php pdlib ext. +RUN cd /tmp \ + && git clone https://github.com/davisking/dlib.git \ + && cd dlib/dlib \ + && mkdir build \ + && cd build \ + && cmake -DBUILD_SHARED_LIBS=ON .. \ + && make install +RUN cd /tmp \ + && git clone https://github.com/goodspb/pdlib.git \ + && cd pdlib \ + && phpize \ + && ./configure \ + && make install + +RUN docker-php-ext-install bz2 +RUN docker-php-ext-enable pdlib bz2