diff --git a/php-fpm/7.4/Dockerfile b/php-fpm/7.4/Dockerfile index 01244c6..f2605f7 100644 --- a/php-fpm/7.4/Dockerfile +++ b/php-fpm/7.4/Dockerfile @@ -97,8 +97,12 @@ RUN set -eux; \ echo 'error_log = /proc/self/fd/2'; \ } > /usr/local/etc/php/conf.d/zz-hardening.ini +# Copy the force-debug script and enable it +COPY --chown=app:app shared/php-fpm/force-debug.php /usr/local/etc/php/force-debug.php +RUN echo 'auto_prepend_file = /usr/local/etc/php/force-debug.php' > /usr/local/etc/php/conf.d/zz-force-debug.ini + # Copy pool configuration from this directory -COPY --chown=app:app php-fpm/${BASE_VERSION}/www.conf /usr/local/etc/php-fpm.d/www.conf +COPY --chown=app:app www.conf /usr/local/etc/php-fpm.d/www.conf # Copy entrypoint from shared path in repo root COPY --chown=root:root shared/php-fpm/entrypoint.sh /usr/local/bin/entrypoint.sh diff --git a/shared/php-fpm/force-debug.php b/shared/php-fpm/force-debug.php new file mode 100644 index 0000000..d4c13fb --- /dev/null +++ b/shared/php-fpm/force-debug.php @@ -0,0 +1,14 @@ +