Dockerfile 575 B

123456789101112131415161718192021
  1. FROM girish/base:0.5
  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. ADD scripts/ /app/base/scripts/
  10. ADD wp-config.php /app/configs/wp-config.php
  11. # these links will become valid after setup is run
  12. RUN ln -s /app/data/wp-config.php /app/code/wp-config.php
  13. EXPOSE 80
  14. CMD [ "/app/base/scripts/start.sh", "--lamp" ]