From 44cad3ff41e3d424b68c58f4d6143c686d37999d Mon Sep 17 00:00:00 2001 From: Nicolas CARPi Date: Thu, 26 Oct 2023 13:23:27 +0200 Subject: [PATCH] redirect all php-fpm errors to stderr --- CHANGELOG.md | 4 ++++ Dockerfile | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ac588d6..7e361b8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,10 @@ # Container image version # Note: the version here is from `ELABIMG_VERSION` present in Dockerfile, not the tagged one +# 4.6.2 + +* Redirect all php-fpm error log to stderr + # 4.6.1 * Revert latest brotli code because new one makes nginx crash diff --git a/Dockerfile b/Dockerfile index 9baefdd..8c07832 100644 --- a/Dockerfile +++ b/Dockerfile @@ -135,7 +135,7 @@ RUN abuild-keygen -n -a && abuild && find /home/builder/packages -type f -name ' FROM alpine:3.18 # this is versioning for the container image -ENV ELABIMG_VERSION=4.6.1 +ENV ELABIMG_VERSION=4.6.2 # the target elabftw version is passed with --build-arg # it is a mandatory ARG @@ -212,6 +212,9 @@ RUN apk upgrade -U -a && apk add --no-cache \ RUN mv /usr/bin/php81 /usr/bin/php81-real COPY ./src/php/phpwithenv /usr/bin/php81 +# redirect all the php-fpm errors to stderr +RUN ln -sf /dev/stderr /var/log/php81/error.log + # S6-OVERLAY # install s6-overlay, our init system. Workaround for different versions using TARGETPLATFORM # platform see https://docs.docker.com/engine/reference/builder/#automatic-platform-args-in-the-global-scope