summaryrefslogtreecommitdiffstats
path: root/ubi9-remi-php84.dockerfile
blob: b1bf219036e039b2b41d98de9248e01489bfb2f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
FROM registry.access.redhat.com/ubi9:latest

# podman build -t ubi9php84 -f ubi9-remi-php84.dockerfile .
# podman run --rm -ti ubi9php84

# 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

# 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 switch-to php:remi-8.4 \
  && dnf -y module install   php:remi-8.4 \
  && dnf -y install php-gd  \
  && dnf clean all

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