diff --git a/Dockerfile-server b/Dockerfile-server index e81b8ccf..7eb77114 100644 --- a/Dockerfile-server +++ b/Dockerfile-server @@ -5,15 +5,15 @@ WORKDIR /app COPY main/xiaozhi-server/requirements.txt . -# 优化apt安装 +# 安装Python依赖 RUN pip install --no-cache-dir -r requirements.txt -# 第三阶段:生产镜像 +# 第二阶段:生产镜像 FROM python:3.10-slim WORKDIR /opt/xiaozhi-esp32-server -# 优化apt安装 +# 安装系统依赖 RUN apt-get update && \ apt-get install -y --no-install-recommends libopus0 ffmpeg && \ apt-get clean && \