Sfoglia il codice sorgente

🔧 chore(docker): 将 Docker 镜像的 APT 源更换为阿里云镜像

- 将所有官方 Debian APT 源地址替换为阿里云镜像地址以加速国内构建
- 更新安全源地址以保持一致性
yourname 2 settimane fa
parent
commit
3eeaefc94a
1 ha cambiato i file con 4 aggiunte e 4 eliminazioni
  1. 4 4
      Dockerfile

+ 4 - 4
Dockerfile

@@ -2,10 +2,10 @@ FROM node:20.19.4-bookworm
 
 # 使用官方 Debian APT 源
 RUN rm -rf /etc/apt/sources.list.d/* && \
-    echo "deb http://deb.debian.org/debian/ bookworm main contrib non-free non-free-firmware" > /etc/apt/sources.list && \
-    echo "deb http://deb.debian.org/debian/ bookworm-updates main contrib non-free non-free-firmware" >> /etc/apt/sources.list && \
-    echo "deb http://deb.debian.org/debian/ bookworm-backports main contrib non-free non-free-firmware" >> /etc/apt/sources.list && \
-    echo "deb http://security.debian.org/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 && \