From 642dee3c1f143e88efc9b89f646065563920ca12 Mon Sep 17 00:00:00 2001 From: Philip Peterson <1326208+philip-peterson@users.noreply.github.com> Date: Thu, 4 Jun 2026 23:05:25 -0700 Subject: [PATCH] wip --- Dockerfile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index b740583..c841b03 100644 --- a/Dockerfile +++ b/Dockerfile @@ -80,8 +80,13 @@ COPY docker/supervisord.conf /etc/supervisor/conf.d/supervisord.conf COPY docker/php/entrypoint.sh /entrypoint.sh RUN chmod +x /entrypoint.sh -# Pass container env vars through to PHP-FPM workers (needed for settings.php overrides). -RUN echo 'clear_env = no' >> /usr/local/etc/php-fpm.d/zz-env.conf +# Pass container env vars through to PHP-FPM workers; capture worker stderr so errors appear in container logs. +RUN { \ + echo 'clear_env = no'; \ + echo 'catch_workers_output = yes'; \ + echo 'php_admin_flag[log_errors] = on'; \ + echo 'php_admin_value[error_log] = /dev/stderr'; \ + } >> /usr/local/etc/php-fpm.d/zz-env.conf RUN chown -R www-data:www-data web/sites/default/files && \ chmod -R 755 web/sites/default/files && \