FROM python:alpine3.17

RUN echo "https://mirrors.sustech.edu.cn/alpine/v3.17/main" > /etc/apk/repositories
RUN echo "https://mirrors.sustech.edu.cn/alpine/v3.17/community" >> /etc/apk/repositories

RUN apk add --update --no-cache --virtual .build-deps \
        g++ \
        bash \
        python3-dev \
        git \
        libxml2 \
        libxml2-dev && \
    apk add libxslt-dev
RUN pip3 config set global.index-url https://mirrors.sustech.edu.cn/pypi/simple
RUN pip3 install bandersnatch
CMD /bin/bash
