From efcd1b6f6792908afa57a2b5843488c8c7dfde6c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E9=9F=B5=E6=99=A8520370910012?= Date: Thu, 12 Sep 2024 14:56:04 +0800 Subject: [PATCH] fix(dockerfile): use sjtu mirror for install MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 王韵晨520370910012 --- Dockerfile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Dockerfile b/Dockerfile index dcc5cb3..0b81825 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,6 +2,13 @@ FROM focs.ji.sjtu.edu.cn:5000/gitea/runner-images:ubuntu-latest-slim +# use sjtug mirror for faster download +RUN rm -rf /etc/apt/sources.list.d/* && cat < /etc/apt/sources.list +deb http://mirror.sjtu.edu.cn/debian bookworm main +deb http://mirror.sjtu.edu.cn/debian-security bookworm-security main +deb http://mirror.sjtu.edu.cn/debian bookworm-updates main +EOF + RUN apt-get update && \ apt-get install -y sudo python3-minimal pipx git && \ apt-get clean && \