changed shell, some clean up

This commit is contained in:
Shihaam Abdul Rahman 2022-11-04 22:30:54 +05:00
parent 84a88ba7bb
commit cd2db88a3b
Signed by: shihaam
GPG Key ID: 16ADCF6871CB2A56

View File

@ -2,7 +2,7 @@ FROM debian:11-slim
WORKDIR /root
ARG PHPVERSION=8.1
SHELL ["/bin/bash", "-c"]
#Initial update packges
RUN apt update && apt upgrade -y
@ -48,30 +48,30 @@ RUN apt install php${PHPVERSION}-fpm php${PHPVERSION} -y --no-install-recommends
&& mkdir /run/php/
#Installing Required PHP Modules
RUN bash -c 'apt install -y php${PHPVERSION}-{cli,bcmath,bz2,intl,common,ctype,curl,dom,gd,mbstring,posix,simplexml,xmlreader,xmlwriter,zip} --no-install-recommends'
RUN apt install -y php${PHPVERSION}-{cli,bcmath,bz2,intl,common,ctype,curl,dom,gd,mbstring,posix,simplexml,xmlreader,xmlwriter,zip} --no-install-recommends
#Installing database connector PHP Modules
RUN bash -c 'apt install -y php${PHPVERSION}-mysql --no-install-recommends'
RUN apt install -y php${PHPVERSION}-mysql --no-install-recommends
#Installing recommended PHP Modules
RUN bash -c 'apt install -y php${PHPVERSION}-{fileinfo,bz2,intl} --no-install-recommends'
RUN apt install -y php${PHPVERSION}-{fileinfo,bz2,intl} --no-install-recommends
#Installing Optional Specific app PHP Modules
RUN bash -c 'apt install -y php${PHPVERSION}-{gmp,exif} --no-install-recommends'
RUN apt install -y php${PHPVERSION}-{gmp,exif} --no-install-recommends
#Installing Optional server performance enhancement PHP Modules
RUN bash -c 'apt install -y php${PHPVERSION}-{apcu,memcached,redis} --no-install-recommends'
RUN apt install -y php${PHPVERSION}-{apcu,memcached,redis} --no-install-recommends
#Installing optional PHP modules and tools for preview generation #Maybe add LibreOffice here
RUN bash -c 'apt install -y php${PHPVERSION}-imagick imagemagick ffmpeg libreoffice --no-install-recommends'
RUN apt install -y php${PHPVERSION}-imagick imagemagick ffmpeg libreoffice --no-install-recommends
#Installing Optional cli enhancement PHP Modules
#RUN bash -c 'apt install -y php${PHPVERSION}-pcntl --no-install-recommends'
#RUN apt install -y php${PHPVERSION}-pcntl --no-install-recommendsb
#Installing Optional PHP module requried for face recogniton
#RUN bash -c 'apt install -y php-pdlib --no-install-recommends'
RUN apt install libdlib-dev -y \
&& apt auto-remove -y \
&& apt clean -y
#RUN apt install -y php-pdlib --no-install-recommends
#RUN apt install libdlib-dev -y \
# && apt auto-remove -y \
# && apt clean -y
# Delete default stuff