Skip to content

Commit 95d06ba

Browse files
committed
move to after changing base urls because it would fail with packages not found
1 parent 6de62d5 commit 95d06ba

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

static-builder-gnu.Dockerfile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff 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
5247
RUN 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
7475
RUN yum install -y \
7576
perl \

0 commit comments

Comments
 (0)