FEATURE: Autoconfigure defaults
This commit is contained in:
19
Dockerfile
19
Dockerfile
@ -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"]
|
||||
|
Reference in New Issue
Block a user