xiaozhi-esp32-server/main/live-agent-api/Dockerfile
2025-12-19 10:51:59 +08:00

22 lines
435 B
Docker

FROM python:3.12-slim
WORKDIR /app
# Install curl for healthcheck
RUN apt-get update && apt-get install -y --no-install-recommends curl && rm -rf /var/lib/apt/lists/*
# Install uv
RUN pip install uv
# Copy project files
COPY . /app/
# Install dependencies using uv
RUN uv sync --no-dev
# Expose port
EXPOSE 8080
# Run the application
CMD [".venv/bin/python", "-m", "uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8080"]