From af6994f75bb6f9bd811a2d080035c3837b29c85a Mon Sep 17 00:00:00 2001 From: yml2213 Date: Sun, 5 Jul 2026 21:32:37 +0800 Subject: [PATCH] =?UTF-8?q?Dockerfile=20=E5=8A=A0=E5=9B=BD=E5=86=85=20apt?= =?UTF-8?q?=20=E9=95=9C=E5=83=8F=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index 0218f34..34d6442 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,6 +10,9 @@ RUN npm run build # ===== 阶段2: Python 运行时 ===== FROM python:3.12-slim AS runtime +# 使用清华镜像源加速(国内服务器) +RUN sed -i 's/deb.debian.org/mirrors.tencentyun.com/g' /etc/apt/sources.list.d/debian.sources + # 安装 OpenCV 系统依赖 RUN apt-get update && apt-get install -y --no-install-recommends \ libgl1 \