build(docker): use Chinese mirrors for backend dependencies
Build, Push and Deploy / build (push) Successful in 1m17s
Build, Push and Deploy / deploy (push) Successful in 9s

This commit is contained in:
2026-09-11 19:15:17 +08:00
parent 469145edd6
commit 69162e3551
+6
View File
@@ -2,6 +2,12 @@
FROM python:3.10-slim 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 # Install build tools needed for the C++ extension plus curl for healthchecks
RUN apt-get update && apt-get install -y --no-install-recommends \ RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \ build-essential \