From aa63d6e28a2c64240e13df26c14a89fbcc955e75 Mon Sep 17 00:00:00 2001 From: tigerenwork Date: Tue, 11 Aug 2026 23:07:51 +0800 Subject: [PATCH] =?UTF-8?q?build:=20apt=20=E4=BD=BF=E7=94=A8=E9=98=BF?= =?UTF-8?q?=E9=87=8C=E4=BA=91=E9=95=9C=E5=83=8F=EF=BC=8C=E5=8A=A0=E9=80=9F?= =?UTF-8?q?=E5=9B=BD=E5=86=85=E7=BD=91=E7=BB=9C=E4=B8=8B=E7=9A=84=E9=95=9C?= =?UTF-8?q?=E5=83=8F=E6=9E=84=E5=BB=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index a3b06b9..37d1157 100644 --- a/Dockerfile +++ b/Dockerfile @@ -16,8 +16,10 @@ WORKDIR /app # so it stays cached unless this block itself changes. # apt caches are BuildKit cache mounts: even when this layer is invalidated, # package downloads are reused instead of hitting deb.debian.org again. +# deb.debian.org is slow from CN networks, so point apt at a local mirror first. RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \ --mount=type=cache,target=/var/lib/apt,sharing=locked \ + sed -i 's|deb\.debian\.org|mirrors.aliyun.com|g' /etc/apt/sources.list.d/debian.sources && \ apt-get update && \ apt-get install -y --no-install-recommends ffmpeg aria2 curl tini gosu ca-certificates unzip \ chromium libnss3 libfreetype6 libharfbuzz0b fonts-freefont-ttf && \