From 6db6cab4175021bcba4ee8ace9d8aeb94d39eeb6 Mon Sep 17 00:00:00 2001 From: chenjiale Date: Thu, 4 Dec 2025 10:41:37 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20=E4=BF=AE=E6=AD=A3=20Dock?= =?UTF-8?q?erfile=20=E4=B8=AD=E7=9A=84=E6=B3=A8=E9=87=8A=E5=92=8C=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E8=B7=AF=E5=BE=84=EF=BC=8C=E7=A1=AE=E4=BF=9D=E6=BA=90?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=AD=A3=E7=A1=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2325e51..8c22c00 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,8 @@ FROM docker.io/python:3.10.16-slim -# 替换 Debian12 的 .sources 文件到清华镜像 +# 替换 Debian12 的 .sources 文件为清华镜像 RUN sed -i 's|deb.debian.org|mirrors.tuna.tsinghua.edu.cn|g' /etc/apt/sources.list.d/debian.sources \ - && sed -i 's|security.debian.org|mirrors.tuna.tsinghua.edu.cn|g' /etc/apt/sources.list.d/debian-security.sources + && sed -i 's|security.debian.org|mirrors.tuna.tsinghua.edu.cn|g' /etc/apt/sources.list.d/debian.sources # 安装依赖(带重试) RUN apt-get update \ @@ -20,7 +20,6 @@ RUN pip install --no-cache-dir -r requirements.txt -i https://pypi.tuna.tsinghua COPY . . -# 预置配置到宿主机可覆盖位置 RUN mkdir -p /opt/alert/model-lab \ && cp /app/config.py /opt/alert/model-lab/config.py -- 2.30.2