From b8f9a360948ea5654d0c232f75f5650f099bba44 Mon Sep 17 00:00:00 2001 From: whosmyqueen Date: Tue, 13 May 2025 16:56:36 +0800 Subject: [PATCH] =?UTF-8?q?build(Dockerfile-server):=20=E4=BD=BF=E7=94=A8?= =?UTF-8?q?=E9=98=BF=E9=87=8C=E4=BA=91=E9=95=9C=E5=83=8F=E6=BA=90=E5=8A=A0?= =?UTF-8?q?=E9=80=9F=E5=9B=BD=E5=86=85=E6=9E=84=E5=BB=BA-=20=E5=9C=A8=20Py?= =?UTF-8?q?thon=20=E4=BE=9D=E8=B5=96=E5=AE=89=E8=A3=85=E4=B8=AD=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E9=98=BF=E9=87=8C=E4=BA=91=20PyPI=20=E9=95=9C?= =?UTF-8?q?=E5=83=8F=E6=BA=90=20-=20=E5=9C=A8=E7=B3=BB=E7=BB=9F=E4=BE=9D?= =?UTF-8?q?=E8=B5=96=E5=AE=89=E8=A3=85=E5=89=8D=E4=BF=AE=E6=94=B9=20APT=20?= =?UTF-8?q?=E9=95=9C=E5=83=8F=E6=BA=90=E4=B8=BA=E9=98=BF=E9=87=8C=E4=BA=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile-server | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile-server b/Dockerfile-server index 7eb771145..0bce8fbd0 100644 --- a/Dockerfile-server +++ b/Dockerfile-server @@ -6,13 +6,16 @@ WORKDIR /app COPY main/xiaozhi-server/requirements.txt . # 安装Python依赖 -RUN pip install --no-cache-dir -r requirements.txt +RUN pip install --no-cache-dir -r requirements.txt -i https://mirrors.aliyun.com/pypi/simple # 第二阶段:生产镜像 FROM python:3.10-slim WORKDIR /opt/xiaozhi-esp32-server +# if you located in China, you can use aliyun mirror to speed up +RUN sed -i 's@deb.debian.org@mirrors.aliyun.com@g' /etc/apt/sources.list.d/debian.sources + # 安装系统依赖 RUN apt-get update && \ apt-get install -y --no-install-recommends libopus0 ffmpeg && \