diff options
-rw-r--r-- | alma9-remi-php83.dockerfile | 7 | ||||
-rw-r--r-- | amzn2-php81.dockerfile | 27 | ||||
-rw-r--r-- | ubi9-remi-php83.dockerfile | 19 |
3 files changed, 44 insertions, 9 deletions
diff --git a/alma9-remi-php83.dockerfile b/alma9-remi-php83.dockerfile index ec36fbb..fb2901c 100644 --- a/alma9-remi-php83.dockerfile +++ b/alma9-remi-php83.dockerfile @@ -1,7 +1,7 @@ -FROM registry.access.redhat.com/ubi9:latest +FROM almalinux:9 -# podman build -t ubi9php83 -f ubi9-remi-php83.dockerfile . -# podman run --rm -ti ubi9php83 +# podman build -t alma9php83 -f alma9-remi-php83.dockerfile . +# podman run --rm -ti alma9php83 RUN dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm \ https://rpms.remirepo.net/enterprise/remi-release-9.rpm && \ @@ -10,6 +10,7 @@ RUN dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.n php-sodium \ php-json \ php-mbstring \ + php-imagick \ php-xml \ && dnf clean all 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"] diff --git a/ubi9-remi-php83.dockerfile b/ubi9-remi-php83.dockerfile index fb2901c..5b25267 100644 --- a/ubi9-remi-php83.dockerfile +++ b/ubi9-remi-php83.dockerfile @@ -1,16 +1,23 @@ -FROM almalinux:9 +FROM registry.access.redhat.com/ubi9:latest -# podman build -t alma9php83 -f alma9-remi-php83.dockerfile . -# podman run --rm -ti alma9php83 +# podman build -t ubi9php83 -f ubi9-remi-php83.dockerfile . +# podman run --rm -ti ubi9php83 +# Install repo RUN dnf -y install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm \ - https://rpms.remirepo.net/enterprise/remi-release-9.rpm && \ - dnf -y module enable php:remi-8.3 && \ + https://rpms.remirepo.net/enterprise/remi-release-9.rpm + +# Use primary server (when needed for new content) +#RUN sed -e 's/^mirrorlist/#mirrorlist/;s/#baseurl/baseurl/' \ +# -i /etc/yum.repos.d/remi*.repo + +# Install +RUN dnf -y module enable php:remi-8.3 && \ dnf -y install httpd php php-cli php-common \ php-sodium \ php-json \ php-mbstring \ - php-imagick \ + php-opcache \ php-xml \ && dnf clean all |