Seems like it's needed...unfortunately. Will look into it more in the future

This commit is contained in:
William Miceli
2019-03-30 18:56:02 -04:00
parent a32ca39423
commit 5001576a77

View File

@@ -34,9 +34,7 @@ RUN mkdir -p /var/www \
ADD https://raw.githubusercontent.com/getgrav/grav/fb20b58369d5e0140a4fa6da06edf8f40412f7bf/webserver-configs/nginx.conf /etc/nginx/conf.d/default.conf ADD https://raw.githubusercontent.com/getgrav/grav/fb20b58369d5e0140a4fa6da06edf8f40412f7bf/webserver-configs/nginx.conf /etc/nginx/conf.d/default.conf
RUN sed -i 's/root \/home\/USER\/www\/html/root \/var\/www/g' /etc/nginx/conf.d/default.conf \ RUN sed -i 's/root \/home\/USER\/www\/html/root \/var\/www/g' /etc/nginx/conf.d/default.conf \
&& sed -i 's/#listen 80;/listen 80;/g' /etc/nginx/conf.d/default.conf && sed -i 's/#listen 80;/listen 80;/g' /etc/nginx/conf.d/default.conf
&& usermod -aG www-data nginx
# Set the file permissions
#RUN usermod -aG www-data nginx
EXPOSE 80 EXPOSE 80
CMD ["nginx", "-g", "daemon off;"] CMD ["nginx", "-g", "daemon off;"]