12345678910111213141516171819202122232425262728293031323334 |
- FROM cloudron/base:0.8.0
- MAINTAINER Girish Ramakrishnan <girish@cloudron.io>
- 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 chown -R www-data.www-data /app/code
- 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
- RUN curl -L -o /app/code/wp-oauth.zip https://github.com//cloudron-io/WP-OAuth/archive/master.zip
- RUN ln -sf /app/data/wp-config.php /app/code/wp-config.php
- RUN curl -L -o /app/code/disable-wordpress-updates.zip https://downloads.wordpress.org/plugin/disable-wordpress-updates.zip
- RUN curl -L -o /app/code/wp-mail-smtp.zip https://downloads.wordpress.org/plugin/wp-mail-smtp.0.9.5.zip
- # 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
- CMD [ "/app/code/start.sh" ]
|