| FROM python:3.13-slim | |
| WORKDIR /app | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| gcc \ | |
| g++ \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Copy requirements first to leverage Docker cache | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy the rest of the application | |
| COPY . . | |
| # Expose the port (Hugging Face Spaces will set the PORT environment variable) | |
| EXPOSE 7860 | |
| # Set the command to run the application | |
| CMD ["chainlit", "run", "main.py", "--host", "0.0.0.0", "--port", "7860"] |