Skip to content

Commit 0ff28cd

Browse files
committed
Set default NGINX error log files to /dev/stderr
This avoids creating a single blank file even if logging is disabled
1 parent f0dcccd commit 0ff28cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,4 +88,4 @@ ENTRYPOINT ["/sbin/tini", "--", "/entrypoint.sh", "/usr/sbin/nginx"]
8888
HEALTHCHECK CMD [ "/healthcheck.sh" ]
8989

9090
# Set default command for container
91-
CMD ["-g", "daemon off;"]
91+
CMD ["-e", "/dev/stderr", "-g", "daemon off;"]

0 commit comments

Comments
 (0)