File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -43,11 +43,6 @@ 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-
5146# different arch for different scl repo
5247RUN if [ "$(uname -m)" = "aarch64" ]; then \
5348 sed -i 's|mirror.centos.org/centos|vault.centos.org/altarch|g' /etc/yum.repos.d/CentOS-SCLo-scl-rh.repo ; \
@@ -70,6 +65,12 @@ RUN curl -o cmake.tgz -fsSL https://github.com/Kitware/CMake/releases/download/v
7065 tar -xzf cmake.tgz -C /cmake --strip-components 1 && \
7166 rm cmake.tgz
7267
68+ # install tools to build packages, if requested
69+ RUN if [ "${BUILD_PACKAGES}" != "" ]; then \
70+ yum install -y ruby rpm-build && \
71+ gem install fpm; \
72+ fi
73+
7374# install build essentials
7475RUN yum install -y \
7576 perl \
You can’t perform that action at this time.
0 commit comments