Dockerfile 648 B

123456789101112131415161718192021
  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. EXPOSE 80