daemon edit in Dockerfile

This commit is contained in:
lenape committed 2025-03-04 22:42:11 +00:00
1 parent d023f0ef63
commit 0d78d9a713
1 file changed
+1
+1
View File
@@ -6,6 +6,7 @@ COPY index.html /usr/share/nginx/html/index.html
RUN sed -i 's|root /var/www/html;|root /usr/share/nginx/html;|' /etc/nginx/sites-available/default && \ RUN sed -i 's|root /var/www/html;|root /usr/share/nginx/html;|' /etc/nginx/sites-available/default && \
nginx -t && \ nginx -t && \
nginx -g 'daemon off;' && \
nginx -s reload nginx -s reload
EXPOSE 80 EXPOSE 80