c91cb2b3创建于 2025年12月20日历史提交
FROM python:3.11.4-slim-bookworm

# Install build dependencies and Python dependencies
RUN rm -f /etc/apt/sources.list && \
    echo "deb http://mirrors.aliyun.com/debian/ bookworm main contrib non-free non-free-firmware" > /etc/apt/sources.list && \
    echo "deb http://mirrors.aliyun.com/debian/ bookworm-updates main contrib non-free non-free-firmware" >> /etc/apt/sources.list && \
    echo "deb http://mirrors.aliyun.com/debian-security/ bookworm-security main contrib non-free non-free-firmware" >> /etc/apt/sources.list && \
    echo 'Acquire::ForceIPv4 "true";' > /etc/apt/apt.conf.d/99force-ipv4 && \
    apt-get update -o Debug::Acquire::http=true && \
    apt-get install -y --no-install-recommends \
        gcc \
        git \
        openssh-client \
        pkg-config \
        python3-dev \
        libmariadb3 \
        libmariadb-dev libmariadb-dev-compat \
        build-essential \
        curl \
        telnet \
        iputils-ping \
        netcat-openbsd \
        unzip