From 7ffff83d79576e768b7813b8b1721d046c3ede1a Mon Sep 17 00:00:00 2001 From: Ric Harvey Date: Thu, 9 Jul 2015 23:09:45 +0100 Subject: [PATCH] Tweak to volume creation --- Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index dbbe330..760ad97 100644 --- a/Dockerfile +++ b/Dockerfile @@ -59,10 +59,6 @@ RUN mkdir -p /etc/nginx/ssl/ ADD ./nginx-site.conf /etc/nginx/sites-available/default.conf RUN ln -s /etc/nginx/sites-available/default.conf /etc/nginx/sites-enabled/default.conf -# add test PHP file -ADD ./index.php /usr/share/nginx/html/index.php -RUN chown -Rf nginx.nginx /usr/share/nginx/html/ - # Add git commands to allow container updating ADD ./pull /usr/bin/pull ADD ./push /usr/bin/push @@ -81,6 +77,10 @@ RUN chmod 755 /start.sh # Setup Volume VOLUME ["/usr/share/nginx/html"] +# add test PHP file +ADD ./index.php /usr/share/nginx/html/index.php +RUN chown -Rf nginx.nginx /usr/share/nginx/html/ + # Expose Ports EXPOSE 443 EXPOSE 80