Spaces:
Sleeping
Sleeping
| FROM python:3.11-slim # 3.13.5 does not exist yet on Docker Hub | |
| WORKDIR /app | |
| # system packages needed to build some Python wheels | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| build-essential \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # copy dependency list first (Docker layer cache) | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # download NLTK data **after** nltk is installed | |
| COPY nltk_data /app/nltk_data | |
| ENV NLTK_DATA=/app/nltk_data | |
| # copy application code | |
| COPY app.py rag_engine.py ./ | |
| EXPOSE 7860 | |
| CMD ["python", "app.py", "--server_name=0.0.0.0", "--server_port=7860"] |