From ccd2ba485cc9d3bc89fc3881bce78ef32148f81c Mon Sep 17 00:00:00 2001 From: Jeroen De Meerleer Date: Fri, 8 Nov 2024 12:08:45 +0100 Subject: [PATCH] Refactored PHP extension installation in Dockerfiles The PHP extension installation commands have been refactored across multiple Dockerfiles. Previously, all extensions were installed in a single command. Now, each extension is installed with its own dedicated command. This change enhances readability and maintainability of the code. --- Dockerfile | 8 +++++++- Dockerfile.daemon | 8 +++++++- Dockerfile.webui | 8 +++++++- 3 files changed, 21 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index aae2ff6..7e01e00 100644 --- a/Dockerfile +++ b/Dockerfile @@ -26,7 +26,13 @@ ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/do RUN set -eux; \ chmod uga+x /usr/local/bin/install-php-extensions && sync -RUN set -eux;install-php-extensions intl bcmath pdo_mysql opcache memcached pcntl zip +RUN set -eux;install-php-extensions intl +RUN set -eux;install-php-extensions bcmath +RUN set -eux;install-php-extensions pdo_mysql +RUN set -eux;install-php-extensions opcache +RUN set -eux;install-php-extensions memcached +RUN set -eux;install-php-extensions pcntl +RUN set -eux;install-php-extensions zip RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini" diff --git a/Dockerfile.daemon b/Dockerfile.daemon index 11a7a87..4aee9a7 100644 --- a/Dockerfile.daemon +++ b/Dockerfile.daemon @@ -13,7 +13,13 @@ ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/do RUN set -eux; \ chmod uga+x /usr/local/bin/install-php-extensions && sync -RUN set -eux;install-php-extensions intl bcmath pdo_mysql opcache memcached pcntl zip +RUN set -eux;install-php-extensions intl +RUN set -eux;install-php-extensions bcmath +RUN set -eux;install-php-extensions pdo_mysql +RUN set -eux;install-php-extensions opcache +RUN set -eux;install-php-extensions memcached +RUN set -eux;install-php-extensions pcntl +RUN set -eux;install-php-extensions zip RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini" diff --git a/Dockerfile.webui b/Dockerfile.webui index f69f246..ffd2604 100644 --- a/Dockerfile.webui +++ b/Dockerfile.webui @@ -26,7 +26,13 @@ ADD https://github.com/mlocati/docker-php-extension-installer/releases/latest/do RUN set -eux; \ chmod uga+x /usr/local/bin/install-php-extensions && sync -RUN set -eux;install-php-extensions intl bcmath pdo_mysql opcache memcached pcntl zip +RUN set -eux;install-php-extensions intl +RUN set -eux;install-php-extensions bcmath +RUN set -eux;install-php-extensions pdo_mysql +RUN set -eux;install-php-extensions opcache +RUN set -eux;install-php-extensions memcached +RUN set -eux;install-php-extensions pcntl +RUN set -eux;install-php-extensions zip RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"