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 GitHub
parent 0edc55adc2
commit 2a858f8f3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -9,6 +9,9 @@ ENV DOCKERFILE_BASE=centos \
CURRENTLY_BUILDING_DOCKER_IMAGE=1 \
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 \
&& yum install -y epel-release \
&& yum update -y \