summaryrefslogtreecommitdiffstats
path: root/amzn2-php82.dockerfile
blob: ebebfb4a3dc841d712d19645b77efe106f85cafb (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
25
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 && \
    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 && \
    yum-config-manager --enable remi-php82-test && \
    yum install -y --setopt=tsflags=nodocs --noplugins \
        php-cli php-ldap && \
    yum clean all

RUN php --modules && php --version

COPY ldap.php /tmp/ldap.php
# RUN LD_PRELOAD=/usr/lib64/libldap_r-2.4.so.2.10.7 php /tmp/ldap.php
RUN php /tmp/ldap.php

ENTRYPOINT ["php"]
CMD ["-a"]