From f10575db35df41ce9492d38b9b0ced9991092fae Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Fri, 25 Nov 2022 10:18:07 +0100 Subject: add some amzn2 Dockerfile to test ldap issue --- amzn2-php74.dockerfile | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 amzn2-php74.dockerfile (limited to 'amzn2-php74.dockerfile') diff --git a/amzn2-php74.dockerfile b/amzn2-php74.dockerfile new file mode 100644 index 0000000..061d38d --- /dev/null +++ b/amzn2-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 && \ + 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-php74 && \ + 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 php /tmp/ldap.php + +ENTRYPOINT ["php"] +CMD ["-a"] -- cgit