mirror of
https://github.com/bunkerity/bunkerweb
synced 2026-05-24 09:28:37 +00:00
21 lines
753 B
Text
21 lines
753 B
Text
FROM redhat/ubi9-init:9.3-10@sha256:f072ce504431065804343431727c032e24511df2c42b14f4daa834001f7e56de
|
|
|
|
ENV NGINX_VERSION 1.24.0
|
|
|
|
# Copy centos repo
|
|
COPY src/linux/centos-9.repo /etc/yum.repos.d/centos.repo
|
|
RUN sed -i "s/%ARCH%/$(uname -m)/g" /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-9.noarch.rpm && \
|
|
dnf install php-fpm yum-utils -y && \
|
|
dnf install nginx-${NGINX_VERSION} -y
|
|
|
|
COPY ./package-rhel9/*.rpm /opt
|