FROM python:3.11.8 WORKDIR /app # Install system dependencies RUN apt-get update && apt-get install -y \ libgl1 \ libglib2.0-0 \ && rm -rf /var/lib/apt/lists/* # Upgrade pip RUN pip install --upgrade pip # Copy files COPY requirements.txt . COPY app.py . # Install packages RUN pip install --no-cache-dir -r requirements.txt # Run Streamlit CMD ["streamlit", "run", "app.py", "--server.port", "7860", "--server.address", "0.0.0.0"]