php-fpm: fix dockerfile not copying www.conf
All checks were successful
php-fpm-build / build (7.4) (push) Successful in 4m30s
All checks were successful
php-fpm-build / build (7.4) (push) Successful in 4m30s
This commit is contained in:
@@ -2,6 +2,7 @@
|
|||||||
ARG BASE_VERSION=7.4
|
ARG BASE_VERSION=7.4
|
||||||
ARG BASE_TAG=${BASE_VERSION}-fpm-alpine3.16
|
ARG BASE_TAG=${BASE_VERSION}-fpm-alpine3.16
|
||||||
FROM php:${BASE_TAG}
|
FROM php:${BASE_TAG}
|
||||||
|
ARG BASE_VERSION
|
||||||
|
|
||||||
# Install build dependencies, PHP extensions, and runtime dependencies in a single layer
|
# Install build dependencies, PHP extensions, and runtime dependencies in a single layer
|
||||||
RUN set -eux; \
|
RUN set -eux; \
|
||||||
@@ -96,8 +97,10 @@ RUN set -eux; \
|
|||||||
echo 'error_log = /proc/self/fd/2'; \
|
echo 'error_log = /proc/self/fd/2'; \
|
||||||
} > /usr/local/etc/php/conf.d/zz-hardening.ini
|
} > /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 --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
|
COPY --chown=root:root shared/php-fpm/entrypoint.sh /usr/local/bin/entrypoint.sh
|
||||||
RUN chmod 755 /usr/local/bin/entrypoint.sh
|
RUN chmod 755 /usr/local/bin/entrypoint.sh
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user