FROM python:3.11-slim WORKDIR /app # Install system dependencies REQUIRED for AI image processing RUN apt-get update && apt-get install -y \ build-essential \ curl \ libgl1 \ libglib2.0-0 \ && rm -rf /var/lib/apt/lists/* # Copy requirements and install COPY requirements.txt . RUN pip install --no-cache-dir --upgrade pip && \ pip install --no-cache-dir -r requirements.txt # Copy the rest of your app (including the logo) COPY . . # Hugging Face uses Port 7860 EXPOSE 7860 # Run the app CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0", "--server.enableXsrfProtection=false", "--server.enableCORS=false"]