diff --git a/php-fpm/7.4/Dockerfile b/php-fpm/7.4/Dockerfile index ec3fc7e..19f491e 100644 --- a/php-fpm/7.4/Dockerfile +++ b/php-fpm/7.4/Dockerfile @@ -2,6 +2,7 @@ ARG BASE_VERSION=7.4 ARG BASE_TAG=${BASE_VERSION}-fpm-alpine3.16 FROM php:${BASE_TAG} +ARG BASE_VERSION # Install build dependencies, PHP extensions, and runtime dependencies in a single layer RUN set -eux; \ @@ -96,8 +97,10 @@ RUN set -eux; \ echo 'error_log = /proc/self/fd/2'; \ } > /usr/local/etc/php/conf.d/zz-hardening.ini -# Copy pool configuration and entrypoint from shared path in repo root +# 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 entrypoint from shared path in repo root COPY --chown=root:root shared/php-fpm/entrypoint.sh /usr/local/bin/entrypoint.sh RUN chmod 755 /usr/local/bin/entrypoint.sh