summaryrefslogtreecommitdiffstats
path: root/Services/apache/Dockerfile
diff options
context:
space:
mode:
authorstartxfr <clarue@startx.fr>2014-12-06 00:27:16 +0100
committerstartxfr <clarue@startx.fr>2014-12-06 00:27:16 +0100
commit49452089e4d3b26d1da96f46b90974f4732d220b (patch)
treeefd33b57091350fbf40659270d3ae1cea19ade3b /Services/apache/Dockerfile
parent28d5ddd7f63e587d48a985ca3efa29fbac409947 (diff)
downloadphpmyadmin-49452089e4d3b26d1da96f46b90974f4732d220b.tar.gz
phpmyadmin-49452089e4d3b26d1da96f46b90974f4732d220b.tar.bz2
phpmyadmin-49452089e4d3b26d1da96f46b90974f4732d220b.tar.xz
phpmyadmin-49452089e4d3b26d1da96f46b90974f4732d220b.zip
adding httpd config file when building apache image.
Diffstat (limited to 'Services/apache/Dockerfile')
-rw-r--r--Services/apache/Dockerfile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Services/apache/Dockerfile b/Services/apache/Dockerfile
index 316834c..10a6e1f 100644
--- a/Services/apache/Dockerfile
+++ b/Services/apache/Dockerfile
@@ -1,6 +1,7 @@
FROM startx/fedora
MAINTAINER Christophe LARUE <dev@startx.fr>
+USER root
# Install packages and set up httpd
RUN yum -y install httpd \
&& yum clean all \
@@ -8,12 +9,14 @@ RUN yum -y install httpd \
&& mkdir -p /var/log/httpd
# Copy startx toolkit
COPY sx/* /sx/
+COPY httpd.conf /etc/httpd/conf.d/sx.conf
# Copy html content
COPY html/* /var/www/html/
RUN chmod ug+rx /sx/httpd* \
- && chmod ug+r /var/www/html/*\
- && chmod ug+r /var/www/html/*
+ && chmod ug+r /var/www/html/* \
+ && chown -R apache:apache /var/www/html /var/log/httpd
EXPOSE 80
EXPOSE 443
+VOLUME ["/var/www/html", "/var/log/httpd"]
CMD ["/sx/httpd_run.sh"] \ No newline at end of file