FROM python:3.11-slim WORKDIR /app RUN apt-get update && apt-get install -y \ libgl1 \ libglib2.0-0 \ build-essential \ git \ curl \ && rm -rf /var/lib/apt/lists/* # Copy only pyproject.toml COPY pyproject.toml . # Install dependencies RUN pip install --upgrade pip setuptools wheel && \ pip install -e . # Copy source code last COPY . . EXPOSE 7860 ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]