# Use the official Python image FROM python:3.10-slim # Set the working directory WORKDIR /app # Install system dependencies # Added libgomp1 which is REQUIRED for FAISS RUN apt-get update && apt-get install -y \ libgl1 \ libglib2.0-0 \ libgomp1 \ && rm -rf /var/lib/apt/lists/* # Copy requirements and install COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Copy the rest of your app and artefacts COPY . . # Expose the port Streamlit runs on EXPOSE 7860 # This tells the container to look for environment variables ENV PYTHONUNBUFFERED=1 # Command to run the app CMD ["streamlit", "run", "app.py", "--server.port", "7860", "--server.address", "0.0.0.0"]