mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-27 04:49:47 +01:00
Server runtime: - translate model-visible strings: direct_answer tool schema, web_search tool desc/errors/results, call_device tool desc/replies, hass_state desc/report strings; they were Chinese text fed to LLMs and devices - replace Chinese pconline geocoder with ip-api.com (English city names) - prompt_manager: drop dead Chinese WEEKDAY_MAP, stop forcing lang=zh_CN for weather, English fallback location - delete orphan alibl_endpoint.py (no importers after AliBL removal) and dead initialize_voiceprint() calling a nonexistent ASR hook - translate mcp_server_settings.json descriptors - test_current_time: assert English weekday/date behavior (upstream test still expected Chinese weekdays) Docs/branding: - README and docs/guides/voiceprint.md: voiceprint IS implemented via the HTTP VoiceprintProvider; document the real protocol (health/identify) and privacy notes instead of falsely claiming the feature is missing - issue templates: English Ops: - Dockerfile-server-base: drop Aliyun PyPI mirror from published image - LICENSE: keep xinnan-tech copyright notice alongside downstream (MIT) - CI: run westernization_audit as a gate; make smoke test failure fatal - westernization.md: point python verification at the real pytest layout
30 lines
1.1 KiB
Text
30 lines
1.1 KiB
Text
# Dockerfile-server-base
|
|
# Base image with system dependencies and Python packages (matches upstream layout;
|
|
# locale and comments are Western; pip install kept compatible with openai-whisper).
|
|
|
|
FROM python:3.10-slim
|
|
|
|
# System packages: audio stack + locales for UTF-8 (en_US, not zh_CN)
|
|
RUN apt-get update && \
|
|
apt-get install -y --no-install-recommends libopus0 ffmpeg locales && \
|
|
sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && \
|
|
locale-gen && \
|
|
apt-get clean && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
# Pip network resilience (default PyPI index)
|
|
RUN pip config set global.timeout 120 && \
|
|
pip config set install.retries 5
|
|
|
|
ENV LANG=en_US.UTF-8 \
|
|
LC_ALL=en_US.UTF-8 \
|
|
LANGUAGE=en_US:en \
|
|
PYTHONIOENCODING=utf-8
|
|
|
|
WORKDIR /opt/xiaozhi-esp32-server
|
|
|
|
COPY main/xiaozhi-server/requirements.txt .
|
|
|
|
# openai-whisper uses legacy setuptools hooks; pin setuptools and skip build isolation
|
|
RUN pip install --no-cache-dir --upgrade pip "setuptools<81" wheel && \
|
|
pip install --no-cache-dir --no-build-isolation -r requirements.txt --default-timeout=120 --retries 5
|