# Use a Python 3.10 image FROM python:3.10-slim # Set the working directory inside the container WORKDIR /app # Install system dependencies (needed for OpenCV) RUN apt-get update && apt-get install -y \ libgl1-mesa-glx \ libglib2.0-0 \ && rm -rf /var/lib/apt/lists/* # Copy the requirements.txt to install dependencies COPY requirements.txt . # Install the Python dependencies RUN pip install --no-cache-dir -r requirements.txt # Copy the application code COPY . . # Expose the port for Streamlit (default is 8501) EXPOSE 8501 # Command to run your application (use Streamlit as example) CMD ["streamlit", "run", "app.py"]