some more php and nginx config, this time in docker file
This commit is contained in:
parent
78e941fb04
commit
33ea8ec73e
12
Dockerfile
12
Dockerfile
@ -22,10 +22,13 @@ RUN apt install zip unzip git gnupg2 ca-certificates lsb-release apt-transport-h
|
|||||||
&& apt auto-remove -y \
|
&& apt auto-remove -y \
|
||||||
&& apt clean -y
|
&& apt clean -y
|
||||||
|
|
||||||
# Installing nginx
|
# Installing and configuring nginx
|
||||||
RUN apt install nginx -y --no-install-recommends \
|
RUN apt install nginx -y --no-install-recommends \
|
||||||
&& apt auto-remove -y \
|
&& 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
|
# Installing redis
|
||||||
RUN apt install redis -y --no-install-recommends \
|
RUN apt install redis -y --no-install-recommends \
|
||||||
@ -38,8 +41,9 @@ RUN wget https://packages.sury.org/php/apt.gpg \
|
|||||||
&& rm apt.gpg \
|
&& rm apt.gpg \
|
||||||
&& echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list
|
&& echo "deb https://packages.sury.org/php/ $(lsb_release -sc) main" > /etc/apt/sources.list.d/php.list
|
||||||
|
|
||||||
#Installing PHP and Modules
|
#Installing and configure PHP
|
||||||
RUN apt install php${PHPVERSION} -y --no-install-recommends
|
RUN apt install php${PHPVERSION} -y --no-install-recommends \
|
||||||
|
&& mkdir /run/php/
|
||||||
|
|
||||||
#Installing Required PHP Modules
|
#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'
|
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'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user