From b347acd5ecdd6fe513a44f2e3c5d318465b715c8 Mon Sep 17 00:00:00 2001 From: fit2bot <68588906+fit2bot@users.noreply.github.com> Date: Wed, 17 Aug 2022 18:50:47 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E6=9B=BF=E6=8D=A2=20mirrors=20(#8765)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * perf: 替换 mirrors * perf: 使用中科大 mirrors Co-authored-by: 吴小白 <296015668@qq.com> --- Dockerfile | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/Dockerfile b/Dockerfile index de4022338..c0fc19fa2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -29,24 +29,22 @@ ARG TOOLS=" \ redis-tools \ telnet \ vim \ - unzip \ + unzip \ wget" -RUN sed -i 's/deb.debian.org/mirrors.aliyun.com/g' /etc/apt/sources.list \ - && sed -i 's/security.debian.org/mirrors.aliyun.com/g' /etc/apt/sources.list \ - && apt update && sleep 1 && apt update \ - && apt -y install ${BUILD_DEPENDENCIES} \ - && apt -y install ${DEPENDENCIES} \ - && apt -y install ${TOOLS} \ +RUN sed -i 's@http://.*.debian.org@http://mirrors.ustc.edu.cn@g' /etc/apt/sources.list \ + && apt-get update \ + && apt-get -y install --no-install-recommends ${BUILD_DEPENDENCIES} \ + && apt-get -y install --no-install-recommends ${DEPENDENCIES} \ + && apt-get -y install --no-install-recommends ${TOOLS} \ && localedef -c -f UTF-8 -i zh_CN zh_CN.UTF-8 \ && cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \ && mkdir -p /root/.ssh/ \ && echo "Host *\n\tStrictHostKeyChecking no\n\tUserKnownHostsFile /dev/null" > /root/.ssh/config \ && sed -i "s@# alias l@alias l@g" ~/.bashrc \ && echo "set mouse-=a" > ~/.vimrc \ - && rm -rf /var/lib/apt/lists/* \ - && mv /bin/sh /bin/sh.bak \ - && ln -s /bin/bash /bin/sh + && echo "no" | dpkg-reconfigure dash \ + && rm -rf /var/lib/apt/lists/* ARG TARGETARCH ARG ORACLE_LIB_MAJOR=19