FROM registry.access.redhat.com/ubi8-minimal:latest

RUN curl https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm -o /tmp/epel.rpm && \
    curl https://rpms.remirepo.net/enterprise/remi-release-8.rpm                -o /tmp/remi.rpm && \
    rpm -iv /tmp/epel.rpm /tmp/remi.rpm && \
    microdnf update tzdata && \
    microdnf --enablerepo=remi install php80-syspaths php80-runtime \
                php80-php-cli php80-php-common php80-php-sodium php80-php-mbstring php80-php-xml php80-php-intl && \
    microdnf clean all

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