Spaces:
Sleeping
Sleeping
| # Use official Python image as base | |
| FROM python:3.10-slim | |
| # Set working directory | |
| WORKDIR /app | |
| # Copy requirements and install | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy app code and KB | |
| COPY app.py . | |
| COPY kb.json . | |
| # Expose port for Huggingface Spaces (8000 is default for FastAPI) | |
| EXPOSE 7860 | |
| # Run Uvicorn server | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |