Skip to content

Commit

Permalink
chore: Update Dockerfile for RHEL and RHEL9 to fix fpm build with gem
Browse files Browse the repository at this point in the history
  • Loading branch information
TheophileDiot committed May 21, 2024
1 parent a916bfe commit b29e1c9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/linux/Dockerfile-rhel
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,11 @@ COPY src/linux/RPM-GPG-KEY-centosofficial /etc/pki/rpm-gpg/RPM-GPG-KEY-centosoff
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 && \
RUN dnf install -y wget redhat-rpm-config rpm-build yum-utils gcc make && \
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm && \
rpm -Uvh epel-release*rpm && \
dnf module -y reset ruby && dnf module -y enable ruby:3.1 && dnf module -y install ruby:3.1/common && \
dnf install -y ruby-devel && \
gem install fpm

# Setup BW
Expand Down
3 changes: 2 additions & 1 deletion src/linux/Dockerfile-rhel9
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,11 @@ COPY --from=builder --chown=0:101 /usr/share/bunkerweb /usr/share/bunkerweb
WORKDIR /usr/share/bunkerweb

# Install fpm
RUN dnf install -y wget redhat-rpm-config rpm-build yum-utils && \
RUN dnf install -y wget redhat-rpm-config rpm-build yum-utils gcc make && \
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm && \
rpm -Uvh epel-release*rpm && \
dnf module -y reset ruby && dnf module -y enable ruby:3.1 && dnf module -y install ruby:3.1/common && \
dnf install -y ruby-devel && \
gem install fpm

# Setup BW
Expand Down

0 comments on commit b29e1c9

Please sign in to comment.