From 03ff53546ec26777624161b1027175a0bcde6d9b Mon Sep 17 00:00:00 2001 From: ibuler Date: Mon, 7 Dec 2020 10:48:47 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8Dcentos=E7=9A=84mirror?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 4ce7f521a..e032161a7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,7 +20,9 @@ WORKDIR /opt/jumpserver COPY ./requirements ./requirements RUN useradd jumpserver -RUN wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo +RUN wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo \ + && sed -i 's@/centos/@/centos-vault/@g' /etc/yum.repos.d/CentOS-Base.repo \ + && sed -i 's@$releasever@6.10@g' /etc/yum.repos.d/CentOS-Base.repo RUN yum -y install epel-release && \ echo -e "[mysql]\nname=mysql\nbaseurl=${MYSQL_MIRROR}\ngpgcheck=0\nenabled=1" > /etc/yum.repos.d/mysql.repo RUN yum -y install $(cat requirements/rpm_requirements.txt)