Dockerfile 804 B

1234567891011121314151617181920212223242526
  1. FROM girish/base:latest
  2. MAINTAINER Girish Ramakrishnan <girish@forwardbias.in>
  3. ENV DEBIAN_FRONTEND noninteractive
  4. RUN mkdir -p /app/code && cd /app/code \
  5. && wget https://wordpress.org/latest.tar.gz \
  6. && tar zxvf latest.tar.gz --strip-components=1 \
  7. && rm latest.tar.gz \
  8. && chown -R www-data.www-data /app/code
  9. RUN ln -s /etc/apache2/sites-available/php_app.conf /etc/apache2/sites-enabled/php_app.conf
  10. RUN cp /app/configs/supervisor/apache2.conf /etc/supervisor/conf.d/apache2.conf
  11. RUN cp /app/configs/supervisor/mysql.conf /etc/supervisor/conf.d/mysql.conf
  12. ADD scripts/ /app/scripts/
  13. RUN chmod +x /app/scripts/*
  14. ADD wp-config.php /app/configs/wp-config.php
  15. # these links will become valid after setup is run
  16. RUN ln -s /app/data/wp-config.php /app/code/wp-config.php
  17. EXPOSE 80