From 7da248e95f4d967e7e4a036e512478349165974d Mon Sep 17 00:00:00 2001 From: zhouzhongping Date: Thu, 18 Jan 2024 11:22:45 +0800 Subject: [PATCH] project: update apt-get source of cn --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 27b5699..7065f4a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,8 +13,10 @@ RUN pip install -i https://pypi.tuna.tsinghua.edu.cn/simple pipenv # 安装依赖,同样使用临时的镜像源 RUN pipenv install --deploy --ignore-pipfile -i https://pypi.tuna.tsinghua.edu.cn/simple -# 安装 wget -RUN apt-get update && apt-get install -y wget +# 设置清华大学镜像源以加速安装 +RUN sed -i 's/deb.debian.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apt/sources.list \ + && sed -i 's/security.debian.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apt/sources.list \ + && apt-get update && apt-get install -y wget # 拷贝应用代码 COPY . /app