This commit is contained in:
Philip Peterson 2026-06-04 23:05:25 -07:00
parent bb84ca34a8
commit 642dee3c1f

View file

@ -80,8 +80,13 @@ COPY docker/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
COPY docker/php/entrypoint.sh /entrypoint.sh COPY docker/php/entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh RUN chmod +x /entrypoint.sh
# Pass container env vars through to PHP-FPM workers (needed for settings.php overrides). # Pass container env vars through to PHP-FPM workers; capture worker stderr so errors appear in container logs.
RUN echo 'clear_env = no' >> /usr/local/etc/php-fpm.d/zz-env.conf 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 && \ RUN chown -R www-data:www-data web/sites/default/files && \
chmod -R 755 web/sites/default/files && \ chmod -R 755 web/sites/default/files && \