From f56633a471bfab554a095c7617b0fa33bee9bac7 Mon Sep 17 00:00:00 2001 From: Shiham Abdul Rahman Date: Sat, 5 Nov 2022 19:00:10 +0500 Subject: [PATCH] downgrade to php 7.4, php7.4-pdlib --- Dockerfile | 11 +++++++++-- docker-compose.yml | 2 +- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 07dd317..a050fff 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,7 @@ FROM debian:11-slim WORKDIR /root -ARG PHPVERSION=8.1 +ARG PHPVERSION=7.4 SHELL ["/bin/bash", "-c"] #Initial update packges RUN apt update && apt upgrade -y @@ -68,7 +68,14 @@ RUN apt install -y php${PHPVERSION}-imagick imagemagick ffmpeg libreoffice --no #RUN apt install -y php${PHPVERSION}-pcntl --no-install-recommendsb #Installing Optional PHP module requried for face recogniton -#RUN apt install -y php-pdlib --no-install-recommends + +RUN echo "deb https://repo.delellis.com.ar bullseye bullseye" > /etc/apt/sources.list.d/20-pdlib.list \ + && wget -qO - https://repo.delellis.com.ar/repo.gpg.key | apt-key add - \ + && apt update \ + && apt install -y php${PHPVERSION}-pdlib --no-install-recommends + && 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 \ diff --git a/docker-compose.yml b/docker-compose.yml index 19f8e14..bdf36f0 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -3,7 +3,7 @@ services: ######################### app: build: . - image: git.shihaam.dev/dockerfiles/nextcloud + image: git.shihaam.dev/dockerfiles/nextcloud:php7.4 hostname: nextcloud volumes: - ./configs/init:/root/init