From 1091caf2653a4caada574b2a5c3a0079557cb355 Mon Sep 17 00:00:00 2001 From: Pablo Zmdl Date: Thu, 13 Feb 2025 11:55:37 +0100 Subject: [PATCH] Use php.ini-production as recommended by the upstream image authors --- templates/Dockerfile-alpine.templ | 3 +++ templates/Dockerfile-debian.templ | 3 +++ 2 files changed, 6 insertions(+) diff --git a/templates/Dockerfile-alpine.templ b/templates/Dockerfile-alpine.templ index 5731c2cc6..310ca841c 100644 --- a/templates/Dockerfile-alpine.templ +++ b/templates/Dockerfile-alpine.templ @@ -77,6 +77,9 @@ RUN set -ex; \ COPY --from=composer:2 /usr/bin/composer /usr/bin/composer +# Use the default production configuration +RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini" + # use custom PHP settings COPY php.ini /usr/local/etc/php/conf.d/roundcube-defaults.ini diff --git a/templates/Dockerfile-debian.templ b/templates/Dockerfile-debian.templ index e31cd1832..731bd38aa 100644 --- a/templates/Dockerfile-debian.templ +++ b/templates/Dockerfile-debian.templ @@ -84,6 +84,9 @@ RUN set -ex; \ COPY --from=composer:2 /usr/bin/composer /usr/bin/composer +# Use the default production configuration +RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini" + # use custom PHP settings COPY php.ini /usr/local/etc/php/conf.d/roundcube-defaults.ini