From 53d766897e2aac036cf598641603cde89a2a86ef Mon Sep 17 00:00:00 2001 From: Bai Date: Thu, 14 Jan 2021 22:24:58 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E9=95=9C=E5=83=8F?= =?UTF-8?q?=E4=B8=BAmirror-vault=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Dockerfile b/Dockerfile index b4c927a5b..4219e1431 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,6 +6,10 @@ RUN useradd jumpserver COPY ./requirements /tmp/requirements +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=https://mirrors.tuna.tsinghua.edu.cn/mysql/yum/mysql57-community-el6/\ngpgcheck=0\nenabled=1" > /etc/yum.repos.d/mysql.repo RUN cd /tmp/requirements && yum -y install $(cat rpm_requirements.txt)