bunkerweb/tests/linux/Dockerfile-rhel
2023-03-03 15:51:20 +01:00

18 lines
No EOL
575 B
Text

FROM redhat/ubi8-init:8.7
# Copy centos repo
COPY src/linux/centos.repo /etc/yum.repos.d/centos.repo
# Copy RPM-GPG-KEY-CentOS-Official
COPY src/linux/RPM-GPG-KEY-centosofficial /etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
# Import RPM-GPG-KEY-CentOS-Official
RUN rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
COPY src/linux/nginx.repo /etc/yum.repos.d/nginx.repo
RUN rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm && \
dnf install php-fpm curl yum-utils -y && \
dnf install nginx-1.22.1 -y
COPY ./package-rhel/*.rpm /opt