From 6aaa6c242764f624e20af4fd68d33986a7a06dd6 Mon Sep 17 00:00:00 2001 From: Adar Nimrod <nimrod@shore.co.il> Date: Sat, 6 Jul 2024 12:46:11 +0300 Subject: [PATCH] python3-build: Update Yum repos. Centos7 is EOL and the mirrorlist is now offline. --- images/python3-build/Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/images/python3-build/Dockerfile b/images/python3-build/Dockerfile index cf80cd0..10b6d1a 100644 --- a/images/python3-build/Dockerfile +++ b/images/python3-build/Dockerfile @@ -3,7 +3,8 @@ FROM registry.hub.docker.com/library/centos:7 ENV LC_ALL en_US.UTF-8 ENV LANG en_US.UTF-8 # hadolint ignore=DL3013,DL3033 -RUN yum group install -y "Development tools" && \ +RUN sed -i '/^mirrorlist=http:\/\/mirrorlist.centos.org\//d; s@^#baseurl=http://mirror.centos.org/@baseurl=http://vault.centos.org/@' /etc/yum.repos.d/*.repo && \ + yum group install -y "Development tools" && \ yum install -y \ python3-devel \ python3-pip \ -- GitLab