# Build: # podman build -t test -f amzn2-php81.dockerfile . # # Usage: # podman run --rm -ti test 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-php81 && \ yum install -y --setopt=tsflags=nodocs --noplugins \ php-cli php-ldap php-redis php-memcached && \ yum clean all RUN php --modules && php --version ENTRYPOINT ["php"] CMD ["-a"]