From 3f1c7250bd6927e9d84c224b9c4310c24eec49fb Mon Sep 17 00:00:00 2001 From: yuetsh <517252939@qq.com> Date: Sun, 15 Jun 2025 20:06:50 +0800 Subject: [PATCH] test --- Dockerfile | 35 +++++++++++++++++++++++++---------- 1 file changed, 25 insertions(+), 10 deletions(-) diff --git a/Dockerfile b/Dockerfile index da51402..0359950 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,3 +1,23 @@ +# 构建阶段 +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 \ + <