Spaces:
Running
Running
| FROM python:3.10-slim | |
| WORKDIR /app | |
| # Install uv | |
| COPY --from=ghcr.io/astral-sh/uv:latest /uv /bin/uv | |
| # Copy files | |
| COPY pyproject.toml uv.lock ./ | |
| COPY chat.py database.py main.py voice.py ./ | |
| # Install dependencies | |
| RUN uv sync --frozen | |
| EXPOSE 7860 | |
| # Run app - note the module path is now just "main" not "backend.main" | |
| CMD ["uv", "run", "uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"] | |