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 \