diff --git a/Dockerfile b/Dockerfile index 98d2f4094275c7aa1c3d8653c7d64709bb91686e..379f5c74cbe124a7008b65b23d00884539233a9f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,6 +24,8 @@ RUN sed -i 's/listen.owner = www-data/listen.owner = nginx/g' /etc/php/7.3/fpm/p sed -i 's/user = www-data/user = nginx/g' /etc/php/7.3/fpm/pool.d/www.conf && \ sed -i 's/group = www-data/group = nginx/g' /etc/php/7.3/fpm/pool.d/www.conf && \ sed -i 's/;cgi.fix_pathinfo=1/cgi.fix_pathinfo=0/g' /etc/php/7.3/fpm/php.ini && \ + rm /var/log/nginx/access.log && ln -s /dev/null /var/log/nginx/access.log && \ + rm /var/log/nginx/error.log && ln -s /dev/stdout /var/log/nginx/error.log && \ mkdir /html # Set correct timezone @@ -39,6 +41,8 @@ COPY config/nginx.conf /etc/nginx/nginx.conf COPY config/nginx-default.conf /etc/nginx/conf.d/default.conf COPY --chown=root:nginx . /html +RUN ln -s /dev/stdout /html/storage/logs/laravel.log + CMD chown -R root:nginx storage/logs/metager bootstrap/cache && \ chmod -R g+w storage/logs/metager bootstrap/cache && \ /etc/init.d/cron start && \