FROM cloudron/base:0.8.0 MAINTAINER Girish Ramakrishnan RUN mkdir -p /app/code WORKDIR /app/code RUN curl -L http://wordpress.org/wordpress-4.3.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-content ADD wp-config.php.template /app/code/wp-config.php.template ADD start.sh /app/code/start.sh RUN curl -o /app/code/wp https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar RUN chmod +x /app/code/wp # Get the plugins RUN curl -L -o /app/code/authLdap.zip https://github.com/gramakri/authLdap/zipfile/7ac3cbf4368d1ccaf4596db9aae1f9fe96d2b46c RUN curl -L -o /app/code/disable-wordpress-updates.zip https://downloads.wordpress.org/plugin/disable-wordpress-updates.1.4.7.zip RUN curl -L -o /app/code/wp-mail-smtp.zip https://downloads.wordpress.org/plugin/wp-mail-smtp.0.9.5.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/more",' -i /etc/apache2/apache2.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 php5 RUN sed -e 's/upload_max_filesize = .*/upload_max_filesize = 8M/' \ -e 's,;session.save_path.*,session.save_path = "/run/mediawiki/sessions",' \ -i /etc/php5/apache2/php.ini RUN mkdir /run/wordpress && \ ln -sf /run/wordpress/wp-config.php /app/code/wp-config.php CMD [ "/app/code/start.sh" ]