From 350abf69de17b079c7589022bb0b2df01a51f84e Mon Sep 17 00:00:00 2001 From: "Suren A. Chilingaryan" Date: Wed, 21 Feb 2018 18:44:26 +0100 Subject: Use volume for apache configuration in order to run in read-only containers --- adei/Dockerfile | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'adei/Dockerfile') diff --git a/adei/Dockerfile b/adei/Dockerfile index 94f5016..ab38acf 100644 --- a/adei/Dockerfile +++ b/adei/Dockerfile @@ -25,6 +25,8 @@ VOLUME /adei/src VOLUME /adei/cfg VOLUME /adei/tmp VOLUME /adei/sys +VOLUME /adei/ovr + COPY supervisor/supervisord.conf /etc/supervisord.conf @@ -37,6 +39,10 @@ RUN /opt/scripts/configure.sh RUN rm -rf /srv/www/htdocs/adei && \ ln -s /adei/src /srv/www/htdocs/adei +RUN ln -sf /etc/mime.types /etc/apache2/mime.types && \ + mv /etc/apache2 /opt/ && \ + ln -s /adei/ovr/apache2 /etc/apache2 + ENV MYSQL_SERVER adei-mysql ENV MYSQL_PORT 3306 ENV MYSQL_USER adei -- cgit v1.2.3