build(coredeps): only run yum if it is available

musllinux is based on Alpine and has no yum
This commit is contained in:
link2xt
2023-09-12 19:59:15 +00:00
parent e7617f0abd
commit 061d091c97

View File

@@ -6,4 +6,4 @@ FROM $BASEIMAGE
RUN pipx install tox
COPY install-rust.sh /scripts/
RUN /scripts/install-rust.sh
RUN yum install -y perl-IPC-Cmd
RUN if command -v yum; then yum install -y perl-IPC-Cmd; fi