project: update apt-get source of cn

This commit is contained in:
周中平 2024-01-18 11:25:54 +08:00
parent 7da248e95f
commit d52bc7ddef
Signed by: zhouzhongping
GPG Key ID: 6666822800008000

View File

@ -13,10 +13,15 @@ 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 RUN pipenv install --deploy --ignore-pipfile -i https://pypi.tuna.tsinghua.edu.cn/simple
# 设置清华大学镜像源以加速安装 # 使用清华大学镜像源临时安装 wget
RUN sed -i 's/deb.debian.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apt/sources.list \ RUN apt-get update -o Dir::Etc::sourcelist="sources.list.d/temp.list" \
&& sed -i 's/security.debian.org/mirrors.tuna.tsinghua.edu.cn/g' /etc/apt/sources.list \ -o Dir::Etc::sourceparts="-" -o APT::Get::List-Cleanup="0" \
&& apt-get update && apt-get install -y wget && echo "deb http://mirrors.tuna.tsinghua.edu.cn/debian/ buster main contrib non-free" > /etc/apt/sources.list.d/temp.list \
&& echo "deb http://mirrors.tuna.tsinghua.edu.cn/debian/ buster-updates main contrib non-free" >> /etc/apt/sources.list.d/temp.list \
&& echo "deb http://mirrors.tuna.tsinghua.edu.cn/debian/ buster-backports main contrib non-free" >> /etc/apt/sources.list.d/temp.list \
&& echo "deb http://mirrors.tuna.tsinghua.edu.cn/debian-security buster/updates main contrib non-free" >> /etc/apt/sources.list.d/temp.list \
&& apt-get update && apt-get install -y wget \
&& rm -f /etc/apt/sources.list.d/temp.list && apt-get update
# 拷贝应用代码 # 拷贝应用代码
COPY . /app COPY . /app