Skip to content

Commit

Permalink
sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list…
Browse files Browse the repository at this point in the history
….d/debian.sources; \
  • Loading branch information
sam#gemmi-win10 committed Oct 14, 2023
1 parent d7511e5 commit 62fc9ea
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions deb12/src/Dockerfile.base
Original file line number Diff line number Diff line change
Expand Up @@ -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\
Expand Down

0 comments on commit 62fc9ea

Please sign in to comment.