Dockerfile 加国内 apt 镜像源

This commit is contained in:
yml2213
2026-07-05 21:32:37 +08:00
parent 2203420146
commit af6994f75b
+3
View File
@@ -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 \