From 2fe8d8d490566726815473d782977dcf96be584b Mon Sep 17 00:00:00 2001 From: whosmyqueen <644049260@qq.com> Date: Mon, 28 Apr 2025 19:35:53 +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=E6=9B=B4=E6=96=B0=20APT=E9=95=9C?= =?UTF-8?q?=E5=83=8F=E6=BA=90=E4=B8=BA=E9=98=BF=E9=87=8C=E4=BA=91=20Debian?= =?UTF-8?q?=E9=95=9C=E5=83=8F=E6=BA=90=20-=20=E9=80=82=E7=94=A8=E4=BA=8E?= =?UTF-8?q?=E5=9C=A8=E5=9B=BD=E5=86=85=E7=8E=AF=E5=A2=83=E4=B8=8B=E5=8A=A0?= =?UTF-8?q?=E9=80=9F=E9=95=9C=E5=83=8F=E6=9E=84=E5=BB=BA=E8=BF=87=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile-server | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile-server b/Dockerfile-server index ab2c04a04..0bce8fbd0 100644 --- a/Dockerfile-server +++ b/Dockerfile-server @@ -6,14 +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 && \