Skip to content

Commit 9aee496

Browse files
kranackhenderkes
andauthored
Add patchelf installation in static-gnu Dockerfile (#1899)
* Add patchelf installation in static-gnu Dockerfile * reduce static-builder-gnu.Dockerfile layers --------- Co-authored-by: henderkes <m@pyc.ac>
1 parent 45823c5 commit 9aee496

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

static-builder-gnu.Dockerfile

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,6 @@ RUN if [ "$(uname -m)" = "aarch64" ]; then \
6262
echo "source scl_source enable devtoolset-10" >> /etc/bashrc && \
6363
source /etc/bashrc
6464

65-
# install newer cmake to build some newer libs
66-
RUN curl -o cmake.tar.gz -fsSL https://github.com/Kitware/CMake/releases/download/v3.31.4/cmake-3.31.4-linux-$(uname -m).tar.gz && \
67-
mkdir /cmake && \
68-
tar -xzf cmake.tar.gz -C /cmake --strip-components 1 && \
69-
rm cmake.tar.gz
70-
7165
# install build essentials
7266
RUN yum install -y \
7367
perl \
@@ -95,6 +89,15 @@ RUN yum install -y \
9589
ln -sf /usr/local/bin/make /usr/bin/make && \
9690
cd .. && \
9791
rm -Rf make* && \
92+
curl -o cmake.tar.gz -fsSL https://github.com/Kitware/CMake/releases/download/v4.1.2/cmake-4.1.2-linux-$(uname -m).tar.gz && \
93+
mkdir /cmake && \
94+
tar -xzf cmake.tar.gz -C /cmake --strip-components 1 && \
95+
rm cmake.tar.gz && \
96+
curl -fsSL -o patchelf.tar.gz https://github.com/NixOS/patchelf/releases/download/0.18.0/patchelf-0.18.0-$(uname -m).tar.gz && \
97+
mkdir -p /patchelf && \
98+
tar -xzf patchelf.tar.gz -C /patchelf --strip-components=1 && \
99+
cp /patchelf/bin/patchelf /usr/bin/ && \
100+
rm patchelf.tar.gz && \
98101
if [ "$(uname -m)" = "aarch64" ]; then \
99102
GO_ARCH="arm64" ; \
100103
else \

0 commit comments

Comments
 (0)