[blogs-web/fpm] Symlink stdout/stderr to access/error logs



commit a5789d9214b9d78a977fe9ee60a59f1c35275c2a
Author: Bartłomiej Piotrowski <bpiotrowski gnome org>
Date:   Mon Oct 12 15:41:42 2020 +0200

    Symlink stdout/stderr to access/error logs

 Dockerfile | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/Dockerfile b/Dockerfile
index 3708be5..c04e7da 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -2,7 +2,9 @@ FROM wordpress:fpm
 
 SHELL ["/bin/bash", "-c"]
     
-RUN apt-get update && apt-get install -y nginx-light
+RUN apt-get update && apt-get install -y nginx-light && \
+    ln -sf /dev/stdout /var/log/nginx/access.log && \
+    ln -sf /dev/stderr /var/log/nginx/error.log
 ADD nginx.conf /etc/nginx/nginx.conf
 
 RUN apt-get update && apt-get install -y libldap-2.4-2 libldap2-dev && \


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]