Spaces:
Running
Running
File size: 405 Bytes
4832b3b a740383 9a8c553 4832b3b a740383 9a8c553 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
FROM python:3.10-slim
WORKDIR /app
# Install uv
COPY --from=ghcr.io/astral-sh/uv:latest /uv /bin/uv
# Copy files (flat structure, no backend folder)
COPY pyproject.toml uv.lock ./
COPY chat.py database.py main.py voice.py ./
# Install dependencies
RUN uv sync --frozen
EXPOSE 7860
# Run app - using module name directly
CMD ["uv", "run", "uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
|