summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorKonstantin Pavlov <thresh@nginx.com>2024-02-13 18:30:22 -0800
committerDan Callahan <dan.callahan@gmail.com>2024-02-20 12:25:00 +0000
commit183a1e9d634ae2fb129ce98f1ca8a16cbfdeac99 (patch)
treecbc4d68c0bb9b5c6afd5f8a6ee2aa0de0189486d
parent33c6c4d4c0e060a974791a472b739214366dead6 (diff)
downloadunit-183a1e9d634ae2fb129ce98f1ca8a16cbfdeac99.tar.gz
unit-183a1e9d634ae2fb129ce98f1ca8a16cbfdeac99.tar.bz2
Docker: redirect logs to stderr
This allows to use /dev/stdout as application logs if users choose to do so. Closes: https://github.com/nginx/unit/issues/982
-rw-r--r--pkg/docker/template.Dockerfile2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/docker/template.Dockerfile b/pkg/docker/template.Dockerfile
index f5efc3c8..70951747 100644
--- a/pkg/docker/template.Dockerfile
+++ b/pkg/docker/template.Dockerfile
@@ -77,7 +77,7 @@ RUN set -ex \
&& apt-get purge -y --auto-remove build-essential \
&& rm -rf /var/lib/apt/lists/* \
&& rm -f /requirements.apt \
- && ln -sf /dev/stdout /var/log/unit.log
+ && ln -sf /dev/stderr /var/log/unit.log
COPY docker-entrypoint.sh /usr/local/bin/
COPY welcome.* /usr/share/unit/welcome/