Add Imagick and Iconv to PHP image
Publish PHP Apache image / Build, test and push (push) Successful in 1m16s

This commit is contained in:
2026-09-11 09:02:53 +02:00
parent 5acc3b0154
commit b83d01de23
4 changed files with 23 additions and 7 deletions
+3 -1
View File
@@ -3,7 +3,7 @@ FROM archlinux:latest
ENV APACHE_SERVER_ADMIN=webmaster@localhost \
APACHE_STATUS_PORT=8080
RUN pacman -Syu --noconfirm apache php-apache php php-gd php-pgsql \
RUN pacman -Syu --noconfirm apache php-apache php php-gd php-imagick php-pgsql \
&& pacman -Sc --noconfirm \
&& rm -v /var/log/pacman.log /var/lib/pacman/sync/*
@@ -21,12 +21,14 @@ RUN sed -i '/mod_mpm_event/ s/^/#/' /etc/httpd/conf/httpd.conf \
&& install -d /etc/php/conf.d \
&& sed -i -e '/extension=exif/ s/^;//' \
-e '/extension=gd/ s/^;//' \
-e '/extension=iconv/ s/^;//' \
-e '/extension=intl/ s/^;//' \
-e '/extension=pgsql/ s/^;//' \
-e '/extension=pdo_pgsql/ s/^;//' \
/etc/php/php.ini
COPY opcache.ini /etc/php/conf.d/opcache.ini
COPY imagick.ini /etc/php/conf.d/imagick.ini
COPY apache-status.conf /etc/httpd/conf/extra/apache-status.conf
ENTRYPOINT ["httpd", "-DFOREGROUND"]