|
@@ -0,0 +1,21 @@
|
|
|
|
+FROM girish/base:latest
|
|
|
|
+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/*
|
|
|
|
+
|
|
|
|
+EXPOSE 80
|
|
|
|
+
|