| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 | 
							- FROM cloudron/base:0.10.0
 
- MAINTAINER Girish Ramakrishnan <girish@cloudron.io>
 
- # this can be removed in next base image update
 
- RUN apt-get update && \
 
-     apt-get install -y php7.0-zip crudini && \
 
-     rm -rf /var/cache/apt /var/lib/apt/lists
 
- RUN mkdir -p /app/code
 
- WORKDIR /app/code
 
- RUN curl -L http://wordpress.org/wordpress-4.8.tar.gz | tar -xz --strip-components 1 -f -
 
- RUN mv /app/code/wp-content /app/code/wp-content-vanilla && ln -s /app/data/wp-content /app/code/wp-content
 
- RUN ln -s /app/data/htaccess /app/code/.htaccess
 
- ADD wp-config.php.template /app/code/wp-config.php.template
 
- RUN mkdir -p /run/wordpress/sessions && \
 
-     ln -sf /run/wordpress/wp-config.php /app/code/wp-config.php
 
- RUN curl -L -o /app/code/wp https://github.com/wp-cli/wp-cli/releases/download/v1.1.0/wp-cli-1.1.0.phar
 
- RUN chmod +x /app/code/wp
 
- RUN /bin/echo -e "apache_modules:\n  - mod_rewrite" > /app/code/wp-cli.yml
 
- # Get the plugins
 
- RUN curl -L -o /app/code/authLdap.zip https://github.com/heiglandreas/authLdap/archive/1.5.1.zip
 
- RUN curl -L -o /app/code/disable-wordpress-core-update.zip https://downloads.wordpress.org/plugin/disable-wordpress-core-update.zip
 
- RUN curl -L -o /app/code/wp-mail-smtp.zip https://downloads.wordpress.org/plugin/wp-mail-smtp.0.10.1.zip
 
- RUN chown -R www-data:www-data /app/code
 
- # configure apache
 
- RUN rm /etc/apache2/sites-enabled/*
 
- RUN sed -e 's,^ErrorLog.*,ErrorLog "|/bin/cat",' -i /etc/apache2/apache2.conf
 
- RUN sed -e "s,MaxSpareServers[^:].*,MaxSpareServers 5," -i /etc/apache2/mods-available/mpm_prefork.conf
 
- RUN a2disconf other-vhosts-access-log
 
- ADD apache2-wordpress.conf /etc/apache2/sites-available/wordpress.conf
 
- RUN ln -sf /etc/apache2/sites-available/wordpress.conf /etc/apache2/sites-enabled/wordpress.conf
 
- RUN echo "Listen 8000" > /etc/apache2/ports.conf
 
- # configure mod_php
 
- RUN a2enmod rewrite
 
- RUN crudini --set /etc/php/7.0/apache2/php.ini PHP upload_max_filesize 500M && \
 
-     crudini --set /etc/php/7.0/apache2/php.ini PHP post_max_size 500M && \
 
-     crudini --set /etc/php/7.0/apache2/php.ini PHP max_input_vars 1800 && \
 
-     crudini --set /etc/php/7.0/apache2/php.ini Session session.save_path /run/wordpress/sessions && \
 
-     crudini --set /etc/php/7.0/apache2/php.ini Session session.gc_probability 1 && \
 
-     crudini --set /etc/php/7.0/apache2/php.ini Session session.gc_divisor 100
 
- ADD start.sh /app/code/start.sh
 
- CMD [ "/app/code/start.sh" ]
 
 
  |