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 && \