Skip to content

Commit 35c0a7f

Browse files
committed
📦 Pre-install system deps @ container image bld
1 parent 4a6715b commit 35c0a7f

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

build-scripts/manylinux-container-image/Dockerfile

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,28 @@ RUN \
2626
fi; \
2727
fi
2828

29+
RUN \
30+
if [ $(uname -m) = "x86_64" ]; \
31+
then \
32+
if stat /etc/redhat-release 1>&2 2>/dev/null; then \
33+
yum -y install binutils perl perl-IPC-Cmd && \
34+
yum -y clean all && \
35+
rm -rf /var/cache/yum; \
36+
fi; \
37+
fi
38+
39+
# This is done as two separate steps because readelf (binutils) is not available on
40+
# aarch64.
41+
RUN \
42+
if [ $(uname -m) = "aarch64" ]; \
43+
then \
44+
if stat /etc/redhat-release 1>&2 2>/dev/null; then \
45+
yum -y install perl perl-IPC-Cmd && \
46+
yum -y clean all && \
47+
rm -rf /var/cache/yum; \
48+
fi; \
49+
fi
50+
2951
ADD build_utils.sh /root/build_utils.sh
3052
ADD install_perl.sh /root/install_perl.sh
3153
RUN ./install_perl.sh "${RELEASE}"

0 commit comments

Comments
 (0)