# Dockerfile for HF Spaces - Multi PDF Chatbot # Use official slim Python image FROM python:3.13.5-slim # Set working directory WORKDIR /app # Install system dependencies required for faiss and other packages RUN apt-get update && apt-get install -y \ build-essential \ curl \ git \ libomp-dev \ && rm -rf /var/lib/apt/lists/* # Copy requirements and app COPY requirements.txt ./ COPY app.py ./ # Install Python dependencies RUN pip install --upgrade pip RUN pip install -r requirements.txt # Expose Streamlit default port EXPOSE 8501 # Healthcheck for HF Spaces HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health || exit 1 # Run Streamlit app ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]