From 53daf9b57b6f7538528c5f80bd191fd0ece188d5 Mon Sep 17 00:00:00 2001 From: claude_dev Date: Sat, 1 Aug 2026 19:16:10 +0800 Subject: [PATCH] =?UTF-8?q?fix(docker):=20Dockerfile=20apt=20=E6=8D=A2?= =?UTF-8?q?=E6=B8=85=E5=8D=8E=20debian=20=E9=95=9C=E5=83=8F(=E5=8E=9F=20de?= =?UTF-8?q?b.debian.org=20=E5=9B=BD=E5=86=85=E4=B8=8D=E7=A8=B3)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docker/Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docker/Dockerfile b/docker/Dockerfile index ff855c8..ba7c789 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -13,6 +13,9 @@ ENV TZ=Asia/Shanghai \ TA_LIBRARY_PATH=/usr/local/lib \ TA_INCLUDE_PATH=/usr/local/include +# 换国内 debian 镜像(清华,trixie deb822 格式;原 deb.debian.org 国内不稳 apt 反复重试) +RUN { sed -i 's|deb.debian.org|mirrors.tuna.tsinghua.edu.cn|g; s|security.debian.org|mirrors.tuna.tsinghua.edu.cn|g' /etc/apt/sources.list.d/debian.sources 2>/dev/null || sed -i 's|deb.debian.org|mirrors.tuna.tsinghua.edu.cn|g; s|security.debian.org|mirrors.tuna.tsinghua.edu.cn|g' /etc/apt/sources.list 2>/dev/null; } + # 安装运行时和编译依赖 RUN apt-get update && apt-get install -y --no-install-recommends \ curl \