From ea3135fa3dabc73837e33ed4ba204f29ecdd4498 Mon Sep 17 00:00:00 2001 From: "zongmin.gu" Date: Wed, 9 Feb 2022 17:50:38 +0800 Subject: [PATCH] Update the centos docker file --- tools/docker/Dockerfile.centos8.2 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/docker/Dockerfile.centos8.2 b/tools/docker/Dockerfile.centos8.2 index 13de2e8e..3c5e3a23 100644 --- a/tools/docker/Dockerfile.centos8.2 +++ b/tools/docker/Dockerfile.centos8.2 @@ -5,6 +5,11 @@ RUN apk update && \ FROM centos:8 +RUN sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-Linux-* &&\ + sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-Linux-* + +RUN yum upgrade -y + LABEL maintainer="He Sun " #The default shell for the RUN instruction is ["/bin/sh", "-c"], which sometimes cause unexpected error @@ -66,7 +71,7 @@ RUN wget http://www.etallen.com/cpuid/cpuid-20200211.x86_64.tar.gz && \ # Install Rust ENV PATH="/root/.cargo/bin:$PATH" -ENV OCCLUM_RUST_VERSION=nightly-2021-09-13 +ENV OCCLUM_RUST_VERSION=nightly-2021-11-01 RUN curl https://sh.rustup.rs -sSf | \ sh -s -- --default-toolchain ${OCCLUM_RUST_VERSION} -y && \ rm -rf /root/.cargo/registry && rm -rf /root/.cargo/git && \