Add Imagick and Iconv to PHP image
Publish PHP Apache image / Build, test and push (push) Successful in 1m16s
Publish PHP Apache image / Build, test and push (push) Successful in 1m16s
This commit is contained in:
+3
-1
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user