FEATURE: Autoconfigure defaults

This commit is contained in:
2022-10-07 18:02:43 +05:00
parent 70ebbf7d68
commit 7012ed8ab2
4 changed files with 41 additions and 6 deletions

View File

@ -25,10 +25,7 @@ RUN apt install zip unzip git gnupg2 ca-certificates lsb-release apt-transport-h
# Installing and configuring nginx
RUN apt install nginx -y --no-install-recommends \
&& apt auto-remove -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/
&& apt clean -y
# Installing redis
RUN apt install redis -y --no-install-recommends \
@ -64,10 +61,20 @@ RUN bash -c 'apt install -y php${PHPVERSION}-{apcu,memcached,redis} --no-install
RUN bash -c '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 bash -c 'apt install -y php${PHPVERSION}-pcntl --no-install-recommends'
# Delete default stuff
#nginx
RUN rm -v /etc/nginx/sites-enabled/default /var/www/html/index.nginx-debian.html
#Autoconfig defaults
RUN mkdir /root/default_configs
COPY buildfiles/auto_config.sh .
COPY buildfiles/nextcloud_nginx.conf /root/default_configs/
CMD ["bash"]
#autostart files
COPY buildfiles/start_services.sh .
RUN chmod +x start_services.sh
CMD ["./start_services.sh"]