fix: Alpine 换 USTC 镜像, pip 换清华镜像避免超时
部署到群晖 / deploy (push) Successful in 1m44s

This commit is contained in:
yuming
2026-04-22 22:19:24 +08:00
parent 419423562b
commit 0243dcd242
+3 -2
View File
@@ -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
# ─────────────────────────────────────────────