FROM python:3.10-slim # System dependencies RUN apt-get update && apt-get install -y \ build-essential \ libgl1-mesa-glx \ libglib2.0-0 \ && rm -rf /var/lib/apt/lists/* # Set workdir WORKDIR /app # Copy code COPY . /app # Install Python dependencies RUN pip install --upgrade pip RUN pip install -r requirements.txt # Streamlit port EXPOSE 7860 # Run app CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]