From 4d069e35d9f7093ade48e6ff6f405c53a75d8abc Mon Sep 17 00:00:00 2001 From: HB9HIL Date: Fri, 8 Nov 2024 15:56:20 +0100 Subject: [PATCH 1/3] added php-gd in the installer --- install/includes/install_config/install_config.php | 1 + 1 file changed, 1 insertion(+) diff --git a/install/includes/install_config/install_config.php b/install/includes/install_config/install_config.php index 1fb5da278..9ae31e097 100644 --- a/install/includes/install_config/install_config.php +++ b/install/includes/install_config/install_config.php @@ -34,6 +34,7 @@ $required_php_modules = [ 'php-mbstring' => ['condition' => isExtensionInstalled('mbstring')], 'php-xml' => ['condition' => isExtensionInstalled('xml')], 'php-zip' => ['condition' => isExtensionInstalled('zip')], + 'php-gd' => ['condition' => isExtensionInstalled('gd')], ]; // MariaDB / MySQL From 0b67b618859b15950c777d5eb6c333195b5f4db6 Mon Sep 17 00:00:00 2001 From: HB9HIL Date: Fri, 8 Nov 2024 15:58:06 +0100 Subject: [PATCH 2/3] adjusted dockerfile --- Dockerfile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Dockerfile b/Dockerfile index 5dc3dc0de..22b098241 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,18 +1,25 @@ FROM php:8.3-apache ENV CI_ENV=docker +ADD --chmod=0755 https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ + # Install dependencies RUN set -e; \ \ apt-get update; \ apt-get install -y --no-install-recommends \ libzip-dev \ + libpng-dev \ + libjpeg-dev \ + libfreetype6-dev \ cron \ ; \ + docker-php-ext-configure gd --with-freetype --with-jpeg; \ \ docker-php-ext-install -j "$(nproc)" \ mysqli \ zip \ + gd \ ; \ \ a2enmod rewrite; \ From c8510bc8b456f251727ce436653950b4ebce9150 Mon Sep 17 00:00:00 2001 From: HB9HIL Date: Fri, 8 Nov 2024 19:57:39 +0100 Subject: [PATCH 3/3] removed unnecessary dep --- Dockerfile | 2 -- 1 file changed, 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 22b098241..526e215e4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,6 @@ FROM php:8.3-apache ENV CI_ENV=docker -ADD --chmod=0755 https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/ - # Install dependencies RUN set -e; \ \