From 514ebb74c6fc2a23ed0a3fb98b50ef7f782d460d Mon Sep 17 00:00:00 2001 From: Benjamin Brummer Date: Sat, 21 Dec 2024 20:37:16 +0100 Subject: [PATCH] No need to have arm64 and amd64 for php extensions --- debian/Dockerfile | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/debian/Dockerfile b/debian/Dockerfile index b7b7557..0d5fb67 100644 --- a/debian/Dockerfile +++ b/debian/Dockerfile @@ -36,21 +36,12 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* -# Install Required PHP extensions. -RUN if [ "$(dpkg --print-architecture)" = "amd64" ]; then \ - ( curl -sSLf https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions -o - || echo 'return 1' ) | sh -s \ - ${php_require} \ - ${php_suggest} \ - ${php_suggest_debian} \ - ${php_extra} \ - @composer; \ - elif [ "$(dpkg --print-architecture)" = "arm64" ]; then \ - ( curl -sSLf https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions -o - || echo 'return 1' ) | sh -s \ +# Install PHP extensions +RUN ( curl -sSLf https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions -o - || echo 'return 1' ) | sh -s \ ${php_require} \ ${php_suggest} \ ${php_extra} \ - @composer; \ - fi + @composer # Configure PHP RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"