summaryrefslogtreecommitdiffstats
path: root/Services/apache/Dockerfile
diff options
context:
space:
mode:
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