From 1f0747e13d401ea826fe75fb25edfe2c0b4ed0e7 Mon Sep 17 00:00:00 2001 From: zyc <1439655764@qq.com> Date: Thu, 29 Jan 2026 15:29:37 +0800 Subject: [PATCH] =?UTF-8?q?add=20=E5=9B=BD=E5=86=85=E6=BA=90=EF=BC=88?= =?UTF-8?q?=E9=98=BF=E9=87=8C=E4=BA=91=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2a0efad..b6dc1ff 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,7 +9,8 @@ ENV PYTHONUNBUFFERED=1 WORKDIR /app # Install system dependencies -RUN apt-get update && apt-get install -y \ +RUN sed -i 's/deb.debian.org/mirrors.aliyun.com/g' /etc/apt/sources.list.d/debian.sources && \ + apt-get update && apt-get install -y \ gcc \ default-libmysqlclient-dev \ pkg-config \ @@ -17,7 +18,8 @@ RUN apt-get update && apt-get install -y \ # Install python dependencies COPY requirements.txt /app/ -RUN pip install --upgrade pip && pip install -r requirements.txt && pip install gunicorn +RUN pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/ && \ + pip install --upgrade pip && pip install -r requirements.txt && pip install gunicorn # Copy project COPY . /app/