Skip to content

Commit

Permalink
Fix Centos 7 yum repos to vault URL now that it is EOL
Browse files Browse the repository at this point in the history
  • Loading branch information
tynanford committed Aug 14, 2024
1 parent 0ecd0b9 commit 17fc894
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion centos7/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ FROM centos:7 AS builder
#
ARG INSTALL_LOCATION=/usr/local
#
RUN echo "LC_CTYPE=en_US.UTF-8" > /etc/environment && \
RUN sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* && \
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-* && \
echo "LC_CTYPE=en_US.UTF-8" > /etc/environment && \
echo "LC_ALL=en_US.UTF-8" >> /etc/environment && \
echo "LANGUAGE=en_US.UTF-8" >> /etc/environment && \
yum update -y && yum install -y git sudo bash wget unzip make && \
Expand Down

0 comments on commit 17fc894

Please sign in to comment.