# ============================================================
# Worker Runtime 基础镜像
# 预安装：ffmpeg + 运行时依赖
# 变化极少，业务构建从此镜像开始
# ============================================================

FROM git.xiaoxiajianji.com/xiaoxia/base/python:3.12-slim

# 使用阿里云镜像加速
RUN sed -i 's|deb.debian.org|mirrors.aliyun.com|g' /etc/apt/sources.list.d/debian.sources 2>/dev/null || \
    sed -i 's|deb.debian.org|mirrors.aliyun.com|g' /etc/apt/sources.list 2>/dev/null || true

# 运行时依赖：ffmpeg + opencv需要的libglib
RUN apt-get update && apt-get install -y --no-install-recommends \
    ffmpeg \
    libglib2.0-0 \
    && rm -rf /var/lib/apt/lists/*
