summaryrefslogtreecommitdiffstats
path: root/amzn2-vips-php80.dockerfile
blob: b685d896661c7422c46c2d8e3fbf8067a398f1ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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