attempting to install pdlib

This commit is contained in:
Shihaam Abdul Rahman 2022-11-04 23:47:43 +05:00
parent 56bd3dc6a1
commit 7e08b2cfd4
Signed by: shihaam
GPG Key ID: 16ADCF6871CB2A56
3 changed files with 21 additions and 5 deletions

2
.gitignore vendored
View File

@ -3,6 +3,8 @@ configs/*
logs/
logs/*
nextcloud/
nextcloud-apps/
nextcloud-apps/*
nextcloud/*
database/
database/*

View File

@ -69,10 +69,19 @@ RUN apt install -y php${PHPVERSION}-imagick imagemagick ffmpeg libreoffice --no
#Installing Optional PHP module requried for face recogniton
#RUN apt install -y php-pdlib --no-install-recommends
#RUN apt install libdlib-dev -y \
# && apt auto-remove -y \
# && apt clean -y
RUN apt install php${PHPVERSION}-dev libx11-dev libopenblas-dev liblapack-dev make cmake gcc g++ -y \
&& git clone https://github.com/davisking/dlib.git \
&& cd dlib/dlib && mkdir build && cd build \
&& cmake -DBUILD_SHARED_LIBS=ON .. \
&& make && make install \
&& cd \
&& git clone https://github.com/goodspb/pdlib.git \
&& cd pdlib \
&& phpize && ./configure --enable-debug \
&& make && make install \
&& apt auto-remove -y \
&& apt clean -y \
&& rm -v pdlib dlib
# Delete default stuff
RUN rm -rv /var/www/html/index.nginx-debian.html \

View File

@ -16,6 +16,7 @@ services:
- /mnt/vol2/nextcloud-data:/var/www/html/data #CHANGE MOUNT POINT FOR THIS
ports:
- 8003:80
restart: always
#########################
db:
image: mysql:8
@ -25,4 +26,8 @@ services:
MYSQL_PASSWORD: nextcloud
MYSQL_ALLOW_EMPTY_PASSWORD: true
volumes:
- ./database:/var/lib/mysql
- database:/var/lib/mysql
restart: always
volumes:
database: