summaryrefslogtreecommitdiffstats
path: root/Services/apache/Dockerfile
diff options
context:
space:
mode:
authorstartxfr <clarue@startx.fr>2015-11-28 14:39:12 +0100
committerstartxfr <clarue@startx.fr>2015-11-28 14:39:12 +0100
commit151b31b6f47fb3d96afdd66138ff40d92cac6202 (patch)
treec9d3acd3354a0dcb8e65a641a6583669c55acd01 /Services/apache/Dockerfile
parent18a451ed0758a4f9736fd4ac68d3c51e4ea8d773 (diff)
downloadphpmyadmin-151b31b6f47fb3d96afdd66138ff40d92cac6202.tar.gz
phpmyadmin-151b31b6f47fb3d96afdd66138ff40d92cac6202.tar.bz2
phpmyadmin-151b31b6f47fb3d96afdd66138ff40d92cac6202.tar.xz
phpmyadmin-151b31b6f47fb3d96afdd66138ff40d92cac6202.zip
mise en place du service apache
Diffstat (limited to 'Services/apache/Dockerfile')
-rw-r--r--Services/apache/Dockerfile30
1 files changed, 15 insertions, 15 deletions
diff --git a/Services/apache/Dockerfile b/Services/apache/Dockerfile
index d382ea7..8db1b4f 100644
--- a/Services/apache/Dockerfile
+++ b/Services/apache/Dockerfile
@@ -2,21 +2,21 @@ FROM startx/fedora
MAINTAINER Christophe LARUE <dev@startx.fr>
USER root
-# Install packages and set up httpd
-RUN dnf -y install httpd \
- && dnf clean all \
- && mkdir -p /var/www/html \
- && 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/* \
- && chown -R apache:apache /var/www/html /var/log/httpd
+RUN dnf -y install httpd && \
+ dnf clean all
+COPY httpd.conf /etc/httpd/conf.d/app.conf
+COPY run.sh /bin/
+RUN chmod 775 /bin/run.sh && \
+ chmod ug+r /etc/httpd/conf.d/app.conf && \
+ rm -f /etc/httpd/conf.d/autoindex.conf && \
+ rm -f /etc/httpd/conf.d/welcome.conf && \
+ mkdir /data && \
+ mkdir /data/www && \
+ mkdir /data/logs
+COPY ./ /data/www
+RUN rm -f /data/www/Dockerfile /data/www/httpd.conf /data/www/run.sh
EXPOSE 80
EXPOSE 443
-VOLUME ["/var/www/html", "/var/log/httpd"]
-CMD ["/sx/httpd_run.sh"] \ No newline at end of file
+VOLUME ["/data/www","/data/logs"]
+CMD ["/bin/run.sh"] \ No newline at end of file