docker: Fix CentOS 6 build on Docker Hub (#24804)

This change make yum usable again on CentOS 6
This commit is contained in:
Massimiliano Culpo 2021-07-09 17:45:46 +02:00 committed by Greg Becker
parent 0e85d7011e
commit 073c92d526

View File

@ -9,6 +9,9 @@ ENV DOCKERFILE_BASE=centos \
CURRENTLY_BUILDING_DOCKER_IMAGE=1 \ CURRENTLY_BUILDING_DOCKER_IMAGE=1 \
container=docker container=docker
# Make yum usable again with CentOS 6
RUN curl https://www.getpagespeed.com/files/centos6-eol.repo --output /etc/yum.repos.d/CentOS-Base.repo
RUN yum update -y \ RUN yum update -y \
&& yum install -y epel-release \ && yum install -y epel-release \
&& yum update -y \ && yum update -y \