Tweak to volume creation
This commit is contained in:
@@ -59,10 +59,6 @@ RUN mkdir -p /etc/nginx/ssl/
|
|||||||
ADD ./nginx-site.conf /etc/nginx/sites-available/default.conf
|
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
|
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 git commands to allow container updating
|
||||||
ADD ./pull /usr/bin/pull
|
ADD ./pull /usr/bin/pull
|
||||||
ADD ./push /usr/bin/push
|
ADD ./push /usr/bin/push
|
||||||
@@ -81,6 +77,10 @@ RUN chmod 755 /start.sh
|
|||||||
# Setup Volume
|
# Setup Volume
|
||||||
VOLUME ["/usr/share/nginx/html"]
|
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 Ports
|
||||||
EXPOSE 443
|
EXPOSE 443
|
||||||
EXPOSE 80
|
EXPOSE 80
|
||||||
|
|||||||
Reference in New Issue
Block a user