| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 | FROM cloudron/base:0.8.0MAINTAINER Girish Ramakrishnan <girish@cloudron.io>RUN mkdir -p /app/codeWORKDIR /app/codeRUN curl -L http://wordpress.org/wordpress-4.4.1.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-contentRUN ln -s /app/data/htaccess /app/code/.htaccessADD wp-config.php.template /app/code/wp-config.php.templateADD start.sh /app/code/start.shRUN mkdir -p /run/wordpress/sessions && \    ln -sf /run/wordpress/wp-config.php /app/code/wp-config.phpRUN curl -o /app/code/wp https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.pharRUN chmod +x /app/code/wp# https://github.com/wp-cli/wp-cli/issues/1164RUN echo "<?php function wp_new_blog_notification() {} ?>" > /run/wordpress/disable-new-blog-notification.php# Get the pluginsRUN curl -L -o /app/code/authLdap.zip https://github.com/gramakri/authLdap/archive/7ac3cbf.zipRUN curl -L -o /app/code/disable-wordpress-updates.zip https://downloads.wordpress.org/plugin/disable-wordpress-updates.1.4.7.zipRUN curl -L -o /app/code/wp-mail-smtp.zip https://downloads.wordpress.org/plugin/wp-mail-smtp.0.9.5.zipRUN chown -R www-data:www-data /app/code# configure apacheRUN rm /etc/apache2/sites-enabled/*RUN sed -e 's,^ErrorLog.*,ErrorLog "|/bin/cat",' -i /etc/apache2/apache2.confRUN sed -e "s,MaxSpareServers[^:].*,MaxSpareServers 5," -i /etc/apache2/mods-available/mpm_prefork.confRUN a2disconf other-vhosts-access-logADD apache2-wordpress.conf /etc/apache2/sites-available/wordpress.confRUN ln -sf /etc/apache2/sites-available/wordpress.conf /etc/apache2/sites-enabled/wordpress.confRUN echo "Listen 8000" > /etc/apache2/ports.conf# configure mod_phpRUN a2enmod php5RUN a2enmod rewriteRUN sed -e 's/upload_max_filesize = .*/upload_max_filesize = 8M/' \        -e 's,;session.save_path.*,session.save_path = "/run/wordpress/sessions",' \        -i /etc/php5/apache2/php.iniCMD [ "/app/code/start.sh" ]
 |