Dockerfile 加国内 apt 镜像源
This commit is contained in:
@@ -10,6 +10,9 @@ RUN npm run build
|
|||||||
# ===== 阶段2: Python 运行时 =====
|
# ===== 阶段2: Python 运行时 =====
|
||||||
FROM python:3.12-slim AS runtime
|
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 系统依赖
|
# 安装 OpenCV 系统依赖
|
||||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||||
libgl1 \
|
libgl1 \
|
||||||
|
|||||||
Reference in New Issue
Block a user