Selaa lähdekoodia

🔧 chore(docker): 将apt源从清华镜像切换至阿里云镜像

- 将所有apt软件源地址从`mirrors.tuna.tsinghua.edu.cn`更新为`mirrors.aliyun.com`
- 此举旨在优化国内构建环境下的软件包下载速度和稳定性
yourname 3 viikkoa sitten
vanhempi
sitoutus
966d50b3d5
1 muutettua tiedostoa jossa 4 lisäystä ja 4 poistoa
  1. 4 4
      Dockerfile

+ 4 - 4
Dockerfile

@@ -2,10 +2,10 @@ FROM registry.cn-beijing.aliyuncs.com/d8dcloud/node:20.19.4-bookworm
 
 # 清除所有现有的APT源配置
 RUN rm -rf /etc/apt/sources.list.d/* && \
-    echo "deb http://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free non-free-firmware" > /etc/apt/sources.list && \
-    echo "deb http://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware" >> /etc/apt/sources.list && \
-    echo "deb http://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware" >> /etc/apt/sources.list && \
-    echo "deb http://mirrors.tuna.tsinghua.edu.cn/debian-security/ bookworm-security main contrib non-free non-free-firmware" >> /etc/apt/sources.list
+    echo "deb http://mirrors.aliyun.com/debian/ bookworm main contrib non-free non-free-firmware" > /etc/apt/sources.list && \
+    echo "deb http://mirrors.aliyun.com/debian/ bookworm-updates main contrib non-free non-free-firmware" >> /etc/apt/sources.list && \
+    echo "deb http://mirrors.aliyun.com/debian/ bookworm-backports main contrib non-free non-free-firmware" >> /etc/apt/sources.list && \
+    echo "deb http://mirrors.aliyun.com/debian-security/ bookworm-security main contrib non-free non-free-firmware" >> /etc/apt/sources.list
 
 # 完全禁用APT的GPG验证
 RUN echo 'APT::Get::AllowUnauthenticated "true";' > /etc/apt/apt.conf.d/99allow-unauthenticated && \