xiaozhi-esp32-server/main/feedback-backend/Dockerfile
kobe fae932d022 feat: add CRM feedback system and test environment
- add feedback backend, H5/admin UI, CRM services, and deployment docs
- add isolated local test compose on port 18007 with separate data paths
- remove committed LLM secret and support provider-specific env overrides

Co-Authored-By: Claude <noreply@anthropic.com>
2026-06-28 16:46:32 +08:00

26 lines
808 B
Docker
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

FROM python:3.10-slim
WORKDIR /app
# 安装系统依赖
RUN apt-get update && apt-get install -y --no-install-recommends \
gcc \
default-libmysqlclient-dev \
&& rm -rf /var/lib/apt/lists/*
# 配置 pip 镜像(国内加速)
RUN pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/
# 安装 Python 依赖(利用 docker 层缓存)
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# 复制项目代码
COPY . .
# 暴露端口
EXPOSE 8009
# 生产模式启动(不带 reload,多 worker 提升稳定性与并发)
# 单 worker 时 SQLite/连接池更稳;多 worker 用于高并发。这里用 2 worker 兼顾稳定与性能
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8009", "--workers", "1", "--log-level", "info"]