build(server): 更新服务器镜像并优化 Dockerfile

- 更新 docker-compose_all.yml 中的服务器镜像地址
- 在 Dockerfile-server 中添加阿里云镜像源以加速国内构建
This commit is contained in:
whosmyqueen 2025-04-28 18:07:11 +08:00
parent 5790ec837e
commit 01fdd34e48
2 changed files with 3 additions and 2 deletions

View file

@ -12,7 +12,8 @@ RUN pip install --no-cache-dir -r requirements.txt
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 && \

View file

@ -4,7 +4,7 @@ version: '3'
services:
# Server模块
xiaozhi-esp32-server:
image: ghcr.nju.edu.cn/xinnan-tech/xiaozhi-esp32-server:server_latest
image: sensetime.com/senseflow/senseflow-esp32-server:server_last
container_name: xiaozhi-esp32-server
depends_on:
- xiaozhi-esp32-server-db