| FROM python:3.9-slim | |
| WORKDIR /app | |
| COPY requirements.txt ./ | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| RUN echo "Installed required Python packages." | |
| COPY buffalo_rag/ /app/buffalo_rag | |
| COPY main.py /app/main.py | |
| COPY data/ /app/data | |
| COPY start.sh /app/start.sh | |
| RUN chmod +x /app/start.sh | |
| EXPOSE 7860 | |
| EXPOSE 8000 | |
| CMD ["/bin/bash", "/app/start.sh"] | |