some more php and nginx config, this time in docker file

This commit is contained in:
Shihaam Abdul Rahman 2022-10-07 16:22:10 +05:00
parent 78e941fb04
commit 33ea8ec73e
Signed by: shihaam
GPG Key ID: 3B007D22E5584980

View File

@ -22,10 +22,13 @@ RUN apt install zip unzip git gnupg2 ca-certificates lsb-release apt-transport-h
&& apt auto-remove -y \
&& apt clean -y
# Installing nginx
# Installing and configuring nginx
RUN apt install nginx -y --no-install-recommends \
&& apt auto-remove -y \
&& apt clean -y
&& apt clean -y \
&& rm -v /etc/nginx/sites-enabled/default /var/www/html/index.nginx-debian.html
COPY buildfiles/nextcloud_nginx.conf /etc/nginx/sites-available/
RUN ln -s /etc/nginx/sites-available/nextcloud_nginx.conf /etc/nginx/sites-enabled/
# Installing redis
RUN apt install redis -y --no-install-recommends \
@ -38,8 +41,9 @@ RUN wget https://packages.sury.org/php/apt.gpg \
&& rm apt.gpg \
&& echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list
#Installing PHP and Modules
RUN apt install php${PHPVERSION} -y --no-install-recommends
#Installing and configure PHP
RUN apt install php${PHPVERSION} -y --no-install-recommends \
&& mkdir /run/php/
#Installing Required PHP Modules
RUN bash -c 'apt install -y php${PHPVERSION}-{ctype,curl,dom,gd,json,libxml,mbstring,openssl,posix,session,simplexml,xmlreader,xmlwriter,zip,zlib} --no-install-recommends'