diff --git a/Dockerfile b/Dockerfile index c69f73b..2563a7c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -8,8 +8,9 @@ WORKDIR /app ENV TZ=Asia/Shanghai RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone -# 使用阿里云镜像源 -RUN echo "deb https://mirrors.aliyun.com/debian/ bookworm main contrib non-free non-free-firmware" > /etc/apt/sources.list && \ +# 使用阿里云镜像源(完全替换所有源) +RUN rm -f /etc/apt/sources.list.d/* && \ + echo "deb https://mirrors.aliyun.com/debian/ bookworm main contrib non-free non-free-firmware" > /etc/apt/sources.list && \ echo "deb https://mirrors.aliyun.com/debian/ bookworm-updates main contrib non-free non-free-firmware" >> /etc/apt/sources.list && \ echo "deb https://mirrors.aliyun.com/debian-security bookworm-security main contrib non-free non-free-firmware" >> /etc/apt/sources.list