From 49452089e4d3b26d1da96f46b90974f4732d220b Mon Sep 17 00:00:00 2001 From: startxfr Date: Sat, 6 Dec 2014 00:27:16 +0100 Subject: adding httpd config file when building apache image. --- Services/apache/Dockerfile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'Services/apache/Dockerfile') 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 +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 -- cgit v1.2.3