downgrade to php 7.4, php7.4-pdlib

This commit is contained in:
Shihaam Abdul Rahman 2022-11-05 19:00:10 +05:00
parent 01f320b725
commit f56633a471
Signed by: shihaam
GPG Key ID: 3B007D22E5584980
2 changed files with 10 additions and 3 deletions

View File

@ -1,7 +1,7 @@
FROM debian:11-slim FROM debian:11-slim
WORKDIR /root WORKDIR /root
ARG PHPVERSION=8.1 ARG PHPVERSION=7.4
SHELL ["/bin/bash", "-c"] SHELL ["/bin/bash", "-c"]
#Initial update packges #Initial update packges
RUN apt update && apt upgrade -y 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 #RUN apt install -y php${PHPVERSION}-pcntl --no-install-recommendsb
#Installing Optional PHP module requried for face recogniton #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 \ #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 \ # && git clone https://github.com/davisking/dlib.git \
# && cd dlib/dlib && mkdir build && cd build \ # && cd dlib/dlib && mkdir build && cd build \

View File

@ -3,7 +3,7 @@ services:
######################### #########################
app: app:
build: . build: .
image: git.shihaam.dev/dockerfiles/nextcloud image: git.shihaam.dev/dockerfiles/nextcloud:php7.4
hostname: nextcloud hostname: nextcloud
volumes: volumes:
- ./configs/init:/root/init - ./configs/init:/root/init