From 729e5c919735d527993022e015dd5424ba2759d9 Mon Sep 17 00:00:00 2001 From: phith0n Date: Mon, 28 Aug 2017 23:15:44 +0800 Subject: [PATCH] fix log files position --- base/nginx/1.4.2/Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/base/nginx/1.4.2/Dockerfile b/base/nginx/1.4.2/Dockerfile index cfb4ca0bdb..b146eb9820 100644 --- a/base/nginx/1.4.2/Dockerfile +++ b/base/nginx/1.4.2/Dockerfile @@ -31,8 +31,8 @@ RUN set -ex \ && rm -rf /tmp/nginx-${NGINX_VERSION} /tmp/pcre-8.40 /tmp/zlib-1.2.11 \ && apt-get purge -y --auto-remove -o APT::AutoRemove::RecommendsImportant=false $BUILD_TOOLS -RUN ln -sf /dev/stdout /var/log/access.log \ - && ln -sf /dev/stderr /var/log/error.log \ +RUN ln -sf /dev/stdout /usr/local/nginx/logs/access.log \ + && ln -sf /dev/stderr /usr/local/nginx/logs/error.log \ && ln -sf /usr/local/nginx/sbin/nginx /usr/sbin/nginx EXPOSE 80 443