chore: Add centos repository and import RPM-GPG-KEY-CentOS-Official in 2nd build state of Dockerfile-rhel as well to fix missing sources

This commit is contained in:
Théophile Diot 2024-05-07 10:30:39 +02:00
parent 81412675a4
commit f231d73d6f
No known key found for this signature in database
GPG key ID: 248FEA4BAE400D06

View file

@ -79,6 +79,16 @@ COPY --from=builder --chown=0:101 /usr/share/bunkerweb /usr/share/bunkerweb
WORKDIR /usr/share/bunkerweb
# Copy centos repo
COPY src/linux/centos.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
# Install fpm
RUN dnf install -y wget redhat-rpm-config rpm-build yum-utils && \
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm && \