Merge pull request #1177 from HB9HIL/gd_docker

php-gd in Docker
This commit is contained in:
Fabian Berg
2024-11-08 19:59:56 +01:00
committed by GitHub
2 changed files with 5 additions and 0 deletions

View File

@@ -7,8 +7,12 @@ 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 \

View File

@@ -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