[blogs-web/fpm] Symlink stdout/stderr to access/error logs
- From: Bartłomiej Piotrowski <bpiotrowski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [blogs-web/fpm] Symlink stdout/stderr to access/error logs
- Date: Mon, 12 Oct 2020 13:43:43 +0000 (UTC)
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]