Update Docker image to PHP 8.3 (#2184)

* Remove Docker image imagick dependency

Remove `imagick` dependency from Docker image as not strictly required (dompdf/dompdf#3376) and to resolve issue with PHP 8.3 (Imagick/imagick#640).

* Update Docker image to PHP 8.3

* Move GD to required PHP extensions
This commit is contained in:
Adam Daley authored and GitHub committed 2024-03-13 16:56:04 -07:00
1 parent 6562428558
commit 46a4cce5ce
2 files changed
+3 -5

No files matched your search

+2 -4
View File
@@ -1,8 +1,8 @@
FROM php:8.2-apache
FROM php:8.3-apache
# Install required packages, configure Apache, install PHP exensions, and clean-up.
RUN apt-get update \
&& apt-get install -y --no-install-recommends wget unzip zlib1g-dev libpng-dev libicu-dev libbz2-dev libmagickwand-dev \
&& apt-get install -y --no-install-recommends wget unzip zlib1g-dev libpng-dev libicu-dev libbz2-dev \
&& a2enmod rewrite \
&& docker-php-ext-configure bz2 \
&& docker-php-ext-install -j$(nproc) bz2 \
@@ -14,8 +14,6 @@ RUN apt-get update \
&& docker-php-ext-install -j$(nproc) opcache \
&& docker-php-ext-configure pdo_mysql \
&& docker-php-ext-install -j$(nproc) pdo_mysql \
&& pecl install imagick \
&& docker-php-ext-enable imagick \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
+1 -1
View File
@@ -27,12 +27,12 @@ class Requirements
'iconv',
'json',
'zlib',
'gd',
],
'suggested_extensions' => [
'mbstring',
'opcache',
'imagick',
'gd',
'bz2',
'simplexml',
'xml',