summaryrefslogtreecommitdiffstats
path: root/adei/Dockerfile
diff options
context:
space:
mode:
authorSuren A. Chilingaryan <csa@suren.me>2018-02-21 18:44:26 +0100
committerSuren A. Chilingaryan <csa@suren.me>2018-02-21 18:44:26 +0100
commit350abf69de17b079c7589022bb0b2df01a51f84e (patch)
tree66bba94094c096b21c181d1a77c6a4ca4078482d /adei/Dockerfile
parent3d19ce5671e45b8e06a91cb09065d81e22f9d6fd (diff)
downloadadei-350abf69de17b079c7589022bb0b2df01a51f84e.tar.gz
adei-350abf69de17b079c7589022bb0b2df01a51f84e.tar.bz2
adei-350abf69de17b079c7589022bb0b2df01a51f84e.tar.xz
adei-350abf69de17b079c7589022bb0b2df01a51f84e.zip
Use volume for apache configuration in order to run in read-only containers
Diffstat (limited to 'adei/Dockerfile')
-rw-r--r--adei/Dockerfile6
1 files changed, 6 insertions, 0 deletions
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