# 构建阶段 FROM python:3.12.2-alpine AS builder ARG TARGETARCH ARG TARGETVARIANT RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories WORKDIR /build COPY ./deploy/requirements.txt /build/ RUN --mount=type=cache,target=/etc/apk/cache,id=apk-cahce-$TARGETARCH$TARGETVARIANT-builder \ --mount=type=cache,target=/root/.cache/pip,id=pip-cahce-$TARGETARCH$TARGETVARIANT-builder \ <