From 0243dcd242d698c1b6b6d3ab7fb6a71c8c49b3e2 Mon Sep 17 00:00:00 2001 From: yuming Date: Wed, 22 Apr 2026 22:19:24 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20Alpine=20=E6=8D=A2=20USTC=20=E9=95=9C?= =?UTF-8?q?=E5=83=8F,=20pip=20=E6=8D=A2=E6=B8=85=E5=8D=8E=E9=95=9C?= =?UTF-8?q?=E5=83=8F=E9=81=BF=E5=85=8D=E8=B6=85=E6=97=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index acfdc1b..6baa422 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,8 +4,9 @@ WORKDIR /app COPY requirements.txt /app/ -RUN apk add --no-cache --virtual .build-deps gcc musl-dev libffi-dev openssl-dev \ - && pip install --no-cache-dir -r requirements.txt \ +RUN sed -i 's|dl-cdn.alpinelinux.org|mirrors.ustc.edu.cn|g' /etc/apk/repositories \ + && apk add --no-cache --virtual .build-deps gcc musl-dev libffi-dev openssl-dev \ + && pip install --no-cache-dir -i https://pypi.tuna.tsinghua.edu.cn/simple -r requirements.txt \ && apk del .build-deps # ─────────────────────────────────────────────