Skip to content

Commit

Permalink
fix centos 7 Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
doitian authored Sep 19, 2024
1 parent a195b72 commit 02ce8ac
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions centos-7/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ FROM centos:7
ENV PATH=/root/.cargo/bin:$PATH

RUN set -eux; \
sed -i 's/mirror.centos.org/vault.centos.org/g' /etc/yum.repos.d/CentOS-*.repo; \
sed -i 's/^#.*baseurl=http/baseurl=http/g' /etc/yum.repos.d/CentOS-*.repo; \
sed -i 's/^mirrorlist=http/#mirrorlist=http/g' /etc/yum.repos.d/CentOS-*.repo; \
yum install -y centos-release-scl; \
yum install -y git curl make devtoolset-8 llvm-toolset-7 perl-core pcre-devel wget zlib-devel; \
yum clean all; \
Expand Down

0 comments on commit 02ce8ac

Please sign in to comment.