Skip to content

Commit 6de62d5

Browse files
committed
install ruby, fpm and rpm-build
1 parent 936be6a commit 6de62d5

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

static-builder-gnu.Dockerfile

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,11 @@ RUN sed -i 's/mirror.centos.org/vault.centos.org/g' /etc/yum.repos.d/*.repo && \
4343
yum update -y && \
4444
yum install -y centos-release-scl
4545

46+
RUN if [ "${BUILD_PACKAGES}" != "" ]; then \
47+
yum install -y ruby rpm-build && \
48+
gem install fpm; \
49+
fi
50+
4651
# different arch for different scl repo
4752
RUN if [ "$(uname -m)" = "aarch64" ]; then \
4853
sed -i 's|mirror.centos.org/centos|vault.centos.org/altarch|g' /etc/yum.repos.d/CentOS-SCLo-scl-rh.repo ; \

0 commit comments

Comments
 (0)