blob: 4fc9a9de3d4457ac0b4827cd0e75b3cc3e26b40b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
FROM registry.access.redhat.com/ubi9:latest
# 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
# 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-opcache \
php-xml \
&& dnf clean all
RUN dnf install -y php-gd
ENTRYPOINT ["php"]
CMD ["-a"]
|