diff --git a/layer-build/Dockerfile b/layer-build/Dockerfile index ee812a0..dada8e6 100644 --- a/layer-build/Dockerfile +++ b/layer-build/Dockerfile @@ -3,6 +3,11 @@ FROM ghcr.io/cross-rs/x86_64-unknown-linux-gnu:main-centos +# Patch for old centos https://serverfault.com/questions/1161816/mirrorlist-centos-org-no-longer-resolve +RUN sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/CentOS-*.repo +RUN sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/CentOS-*.repo +RUN sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/CentOS-*.repo + RUN yum update -y && \ yum install centos-release-scl -y && \ yum install llvm-toolset-7 -y