From cf9897da0fd6ae43e6bdff7600469063c940a623 Mon Sep 17 00:00:00 2001 From: Sean Lam Date: Fri, 21 Jun 2024 09:58:47 -0700 Subject: [PATCH] Update Dockerfile (#213) --- Dockerfile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Dockerfile b/Dockerfile index f6041b7b..2e609614 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,10 @@ FROM quay.io/centos/centos:stream8 +# CentOS 8 reached EOL Dec 31, 2021. Therefore, mirrors need to be change to the following +RUN cd /etc/yum.repos.d/ +RUN sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* +RUN sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-* + # Update the system and install necessary tools. RUN dnf -y update && \ dnf -y install wget bzip2 unzip git mesa-dri-drivers python3 python3-pip