From fabf25b4ac23189d50d8ea34dcfb7db7e0f55caa Mon Sep 17 00:00:00 2001 From: gregory hendrickson Date: Wed, 29 Nov 2023 16:17:57 -0800 Subject: [PATCH] add Dependancies for face recognition --- nextcloud/Dockerfile | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/nextcloud/Dockerfile b/nextcloud/Dockerfile index 115cac5..08499df 100644 --- a/nextcloud/Dockerfile +++ b/nextcloud/Dockerfile @@ -53,6 +53,33 @@ RUN mkdir -p \ /var/run/supervisord \ ; +# Install dependencies +RUN apt-get update && \ + apt-get install -y build-essential wget cmake libx11-dev libopenblas-dev git + +# Install dlib +RUN git clone https://github.com/davisking/dlib.git && \ + cd dlib/dlib && \ + mkdir build && \ + cd build && \ + cmake -DBUILD_SHARED_LIBS=ON .. && \ + make && \ + make install + +# Install pdlib +RUN git clone https://github.com/goodspb/pdlib.git && \ + cd pdlib && \ + phpize && \ + ./configure --enable-debug && \ + make && \ + make install + +# Enable pdlib in PHP ###zzz ensures it will load last and override any other settings +RUN echo 'extension="pdlib.so"' >> /usr/local/etc/php/conf.d/zzz-php.ini + +RUN echo 'memory_limit = 9600M' >> /usr/local/etc/php/conf.d/zzz-php.ini + + COPY supervisord.conf / ENV NEXTCLOUD_UPDATE=1