summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2020-10-20 07:23:07 +0200
committerRemi Collet <remi@remirepo.net>2020-10-20 07:23:07 +0200
commit2b4858746cca69c477fae0f6e73146091aae3456 (patch)
tree17b9cd920d6d79537196761d69b1324f7e41fa87
parent7489433db1aeabbe2c65cb1effa99ad1b693daab (diff)
add amzn2 with PHP 7.4 and vips + imagick extension
-rw-r--r--amzn2-imagick-php74.dockerfile24
1 files changed, 24 insertions, 0 deletions
diff --git a/amzn2-imagick-php74.dockerfile b/amzn2-imagick-php74.dockerfile
new file mode 100644
index 0000000..7fd84b9
--- /dev/null
+++ b/amzn2-imagick-php74.dockerfile
@@ -0,0 +1,24 @@
+FROM amazonlinux:2
+
+RUN yum update -y
+
+# Import archive signing keys and update packages
+RUN rpm --import https://dl.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-7 && \
+ rpm --import https://rpms.remirepo.net/RPM-GPG-KEY-remi && \
+ rpmkeys --import file:///etc/pki/rpm-gpg/RPM-GPG-KEY-amazon-linux-2 && \
+ yum install -y yum-utils && \
+ yum update -y
+
+RUN yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm \
+ https://rpms.remirepo.net/enterprise/remi-release-7.rpm \
+ https://download1.rpmfusion.org/free/el/rpmfusion-free-release-7.noarch.rpm && \
+ yum-config-manager --enable remi && \
+ yum-config-manager --enable remi-php74 && \
+ rpmkeys --import file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-el-7 && \
+ yum install -y --setopt=tsflags=nodocs --noplugins \
+ php-cli php-pecl-vips php-pecl-imagick && \
+ yum clean all
+
+RUN php --modules && php --version
+
+