123456789101112131415161718192021222324252627 |
- FROM girish/base:0.3
- MAINTAINER Girish Ramakrishnan <girish@forwardbias.in>
- ENV DEBIAN_FRONTEND noninteractive
- RUN mkdir -p /app/code && cd /app/code \
- && wget https://wordpress.org/latest.tar.gz \
- && tar zxvf latest.tar.gz --strip-components=1 \
- && rm latest.tar.gz \
- && chown -R www-data.www-data /app/code
- RUN ln -s /etc/apache2/sites-available/php_app.conf /etc/apache2/sites-enabled/php_app.conf
- RUN cp /app/configs/supervisor/apache2.conf /etc/supervisor/conf.d/apache2.conf
- RUN cp /app/configs/supervisor/mysql.conf /etc/supervisor/conf.d/mysql.conf
- ADD scripts/ /app/scripts/
- RUN chmod +x /app/scripts/*
- ADD wp-config.php /app/configs/wp-config.php
- # these links will become valid after setup is run
- RUN ln -s /app/data/wp-config.php /app/code/wp-config.php
- EXPOSE 80
- CMD [ "/app/scripts/start_supervisor.sh" ]
|