summaryrefslogtreecommitdiffstats
path: root/amzn2-vips-php80.dockerfile
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2021-06-21 14:38:52 +0200
committerRemi Collet <remi@remirepo.net>2021-06-21 14:38:52 +0200
commit3da5e07bb96419bfa900fe61ae2382e78d255e32 (patch)
tree31ae2637fbe1f109b31680257895bd2e5d9384f3 /amzn2-vips-php80.dockerfile
parent330c34991fdc90d0fa9f9ad4c2f07308ee582734 (diff)
add docker test file for php 8.0 + vips + zip on amzn2
Diffstat (limited to 'amzn2-vips-php80.dockerfile')
-rw-r--r--amzn2-vips-php80.dockerfile24
1 files changed, 24 insertions, 0 deletions
diff --git a/amzn2-vips-php80.dockerfile b/amzn2-vips-php80.dockerfile
new file mode 100644
index 0000000..b685d89
--- /dev/null
+++ b/amzn2-vips-php80.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-php80 && \
+ rpmkeys --import file:///etc/pki/rpm-gpg/RPM-GPG-KEY-rpmfusion-free-el-7 && \
+ yum install -y --setopt=tsflags=nodocs --noplugins \
+ vips-full-tools php-cli php-pecl-vips php-pecl-zip && \
+ yum clean all
+
+RUN vips --version && php --modules && php --ri zip && php --version
+
+