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
This commit is contained in:
committed by
Dan Callahan
parent
33c6c4d4c0
commit
183a1e9d63
@@ -77,7 +77,7 @@ RUN set -ex \
|
|||||||
&& apt-get purge -y --auto-remove build-essential \
|
&& apt-get purge -y --auto-remove build-essential \
|
||||||
&& rm -rf /var/lib/apt/lists/* \
|
&& rm -rf /var/lib/apt/lists/* \
|
||||||
&& rm -f /requirements.apt \
|
&& 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 docker-entrypoint.sh /usr/local/bin/
|
||||||
COPY welcome.* /usr/share/unit/welcome/
|
COPY welcome.* /usr/share/unit/welcome/
|
||||||
|
|||||||
Reference in New Issue
Block a user