diff --git a/deb12/src/Dockerfile.base b/deb12/src/Dockerfile.base index 89ad597..1c07da6 100644 --- a/deb12/src/Dockerfile.base +++ b/deb12/src/Dockerfile.base @@ -11,11 +11,14 @@ ENV \ # mirrors.aliyun.com # mirrors.tencentyun.com ARG TARGETPLATFORM -RUN export DOMAIN="mirrors.ustc.edu.cn"; \ - rm -f /etc/apt/sources.list.d/debian.sources; \ - test -z "$(echo $TARGETPLATFORM |grep arm)" && target=bookworm || target=bookworm-ports; \ - echo "deb http://$DOMAIN/debian bookworm main contrib non-free" > /etc/apt/sources.list; \ - echo "deb http://$DOMAIN/debian bookworm-updates main contrib non-free">> /etc/apt/sources.list; \ +# RUN export DOMAIN="mirrors.ustc.edu.cn"; \ +# rm -f /etc/apt/sources.list.d/debian.sources; \ +# test -z "$(echo $TARGETPLATFORM |grep arm)" && target=bookworm || target=bookworm-ports; \ +# echo "deb http://$DOMAIN/debian bookworm main contrib non-free" > /etc/apt/sources.list; \ +# echo "deb http://$DOMAIN/debian bookworm-updates main contrib non-free">> /etc/apt/sources.list; \ + +# https://mirrors.ustc.edu.cn/help/debian.html +RUN sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list.d/debian.sources; \ \ # default:echo -e; echo "path-exclude /usr/share/doc/*\n\