From 69162e35519573c42d62a6a4716099104f9a4360 Mon Sep 17 00:00:00 2001 From: obroccolio Date: Fri, 11 Sep 2026 19:15:17 +0800 Subject: [PATCH] build(docker): use Chinese mirrors for backend dependencies --- backend/Dockerfile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/backend/Dockerfile b/backend/Dockerfile index 8bf63cb..1b12445 100644 --- a/backend/Dockerfile +++ b/backend/Dockerfile @@ -2,6 +2,12 @@ FROM python:3.10-slim +# Point Debian and pip at Chinese mirrors reachable from the CI runner. +RUN find /etc/apt -type f \( -name '*.sources' -o -name '*.list' \) \ + -exec sed -i 's|http://deb.debian.org|https://mirrors.tuna.tsinghua.edu.cn|g' {} + + +ENV PIP_INDEX_URL=https://pypi.tuna.tsinghua.edu.cn/simple + # Install build tools needed for the C++ extension plus curl for healthchecks RUN apt-get update && apt-get install -y --no-install-recommends \ build-essential \