From 2a6216c7065c2bfdb5d576bf51e1c22631101aeb Mon Sep 17 00:00:00 2001 From: zyc <1439655764@qq.com> Date: Wed, 27 May 2026 10:41:44 +0800 Subject: [PATCH] Use Aliyun apt mirror for Docker builds --- Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 12980fa..93205b4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,11 @@ FROM node:24-bookworm-slim WORKDIR /app -RUN apt-get update && \ +RUN sed -i \ + -e 's|http://deb.debian.org/debian|https://mirrors.aliyun.com/debian|g' \ + -e 's|http://deb.debian.org/debian-security|https://mirrors.aliyun.com/debian-security|g' \ + /etc/apt/sources.list.d/debian.sources && \ + apt-get update && \ apt-get install -y --no-install-recommends ca-certificates python3 make g++ && \ rm -rf /var/lib/apt/lists/* && \ npm config set registry https://registry.npmmirror.com/ && \