diff --git a/Dockerfile b/Dockerfile index 3c49e09..ba4e8f9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,10 +3,7 @@ FROM python:3.12-slim as builder WORKDIR /app # 配置apt使用国内镜像源 -RUN echo "deb https://mirrors.ustc.edu.cn/debian/ bookworm main contrib non-free non-free-firmware" > /etc/apt/sources.list \ - && echo "deb https://mirrors.ustc.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware" >> /etc/apt/sources.list \ - && echo "deb https://mirrors.ustc.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware" >> /etc/apt/sources.list \ - && echo "deb https://mirrors.ustc.edu.cn/debian-security bookworm-security main contrib non-free non-free-firmware" >> /etc/apt/sources.list +RUN sed -i 's/deb.debian.org/mirrors.ustc.edu.cn/g' /etc/apt/sources.list.d/debian.sources # 安装构建依赖 RUN apt-get update && apt-get install -y --no-install-recommends \