Spaces:
Sleeping
Sleeping
| FROM python:3.10-slim | |
| WORKDIR /app | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| build-essential \ | |
| git \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Copy requirements first (for better caching) | |
| COPY requirements.txt . | |
| # Install Python dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Models download automatically on first run (SentenceTransformers, spaCy, etc.) | |
| # No manual download needed | |
| # Copy application | |
| COPY . . | |
| # Create necessary directories | |
| RUN mkdir -p reports chroma_data | |
| # Expose port | |
| EXPOSE 7860 | |
| # Set environment variables | |
| ENV GRADIO_SERVER_PORT=7860 | |
| ENV CHROMA_PERSIST_DIR=/app/chroma_data | |
| # Run application | |
| CMD ["python", "app.py"] | |