From c65f533dcc58a8fc12e529431e613760432006b4 Mon Sep 17 00:00:00 2001 From: jknapp Date: Wed, 1 Apr 2026 15:48:58 -0700 Subject: [PATCH] Add HEIC/HEIF/AVIF support + fix MariaDB repo for AlmaLinux 10 Added ImageMagick-heic package to both Dockerfile and Dockerfile.fpm. This is a separate EPEL subpackage that provides HEIC, HEIF, and AVIF format support via libheif. Without it, ImageMagick is installed but cannot process iPhone photos and modern image formats. Also fixed MariaDB repo URL: AlmaLinux 10 uses $releasever=10 but MariaDB mirrors don't have an 'almalinux10' directory. Changed to 'rhel10' which is the supported path for EL10 derivatives. Co-Authored-By: Claude Opus 4.6 (1M context) --- Dockerfile | 4 ++-- Dockerfile.fpm | 4 ++-- configs/mariadb.repo | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3dafe76..676bddc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,8 +15,8 @@ RUN dnf install -y \ COPY ./scripts/ /scripts/ RUN chmod +x /scripts/* -# Install ImageMagick from EPEL (before PHP so php-pecl-imagick links against it) -RUN dnf install -y ImageMagick ImageMagick-libs && \ +# Install ImageMagick from EPEL with HEIC/HEIF/AVIF support +RUN dnf install -y ImageMagick ImageMagick-libs ImageMagick-heic && \ dnf clean all # Generate self-signed cert, create needed dirs, install PHP, clean up diff --git a/Dockerfile.fpm b/Dockerfile.fpm index 2bef44b..6685497 100644 --- a/Dockerfile.fpm +++ b/Dockerfile.fpm @@ -15,8 +15,8 @@ RUN dnf install -y \ COPY ./scripts/ /scripts/ RUN chmod +x /scripts/* -# Install ImageMagick from EPEL (before PHP so php-pecl-imagick links against it) -RUN dnf install -y ImageMagick ImageMagick-libs && \ +# Install ImageMagick from EPEL with HEIC/HEIF/AVIF support +RUN dnf install -y ImageMagick ImageMagick-libs ImageMagick-heic && \ dnf clean all # Create needed dirs, install PHP, clean up (no SSL cert, no httpd) diff --git a/configs/mariadb.repo b/configs/mariadb.repo index 25bea9c..7eafb31 100644 --- a/configs/mariadb.repo +++ b/configs/mariadb.repo @@ -4,7 +4,7 @@ name = MariaDB # rpm.mariadb.org is a dynamic mirror if your preferred mirror goes offline. See https://mariadb.org/mirrorbits/ for details. # baseurl = https://rpm.mariadb.org/10.11/centos/$releasever/$basearch -baseurl = https://mirror.mariadb.org/yum/11.4/almalinux$releasever-amd64 +baseurl = https://mirror.mariadb.org/yum/11.4/rhel$releasever-amd64 module_hotfixes = 1 # gpgkey = https://rpm.mariadb.org/RPM-GPG-KEY-MariaDB gpgkey = https://mirrors.xtom.com/mariadb/yum/RPM-GPG-KEY-MariaDB