FROM cloudron/base:0.3.0 MAINTAINER Girish Ramakrishnan ENV DEBIAN_FRONTEND noninteractive RUN mkdir -p /app/code WORKDIR /app/code RUN curl -L http://wordpress.org/wordpress-4.2.tar.gz | tar -xz --strip-components 1 -f - RUN chown -R www-data.www-data /app/code ADD start.sh /app/code/start.sh RUN chmod +x /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 RUN ln -sf /app/data/wp-config.php /app/code/wp-config.php # configure apache RUN rm /etc/apache2/sites-enabled/* RUN sed -i 's/upload_max_filesize = .*/upload_max_filesize = 8M/' /etc/php5/apache2/php.ini 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 a2enmod php5 # supervisor ADD supervisor-apache2.conf /etc/supervisor/conf.d/apache2.conf EXPOSE 80 CMD [ "/app/code/start.sh" ]