diff options
author | Remi Collet <remi@remirepo.net> | 2024-07-23 10:29:27 +0200 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2024-07-23 10:29:27 +0200 |
commit | 28c418d44f1cac465bffedc69a44c0c2459b40f3 (patch) | |
tree | 99ec8ad5689489c4afe15bccf65cd12d4c2b4611 | |
parent | 8219f45b6eddc7e496c38c8c7695137466e47d3e (diff) |
add amzn2 + php 8.1 config
-rw-r--r-- | amzn2-php81.dockerfile | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/amzn2-php81.dockerfile b/amzn2-php81.dockerfile new file mode 100644 index 0000000..4175881 --- /dev/null +++ b/amzn2-php81.dockerfile @@ -0,0 +1,27 @@ +# 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"] |