kumardatascience/Multi-Source-RAG-AI-System-with-Query-Routing
1
1# Use the official Python 3.12 slim image as our base2FROM python:3.12-slim3 4# Set the working directory inside the container5WORKDIR /app6 7# Copy requirements first (Docker layer caching: deps only re-install if requirements change)8COPY requirements.txt .9 10# Install Python dependencies11RUN pip install --no-cache-dir --upgrade pip \12 && pip install --no-cache-dir -r requirements.txt13 14# Copy the rest of the project15COPY src/ ./src/16COPY data/ ./data/17COPY pytest.ini .18 19# Chainlit needs to know where to find chainlit.md 20WORKDIR /app/src/app21 22# Expose the port Chainlit runs on23EXPOSE 800024 25# Run Chainlit when the container starts26# --host 0.0.0.0 makes it accessible from outside the container27CMD ["chainlit", "run", "main.py", "--host", "0.0.0.0", "--port", "8000"]