FROM python:3.11-slim WORKDIR /app COPY . /app # Install just the frontend deps RUN pip install --no-cache-dir -r requirements.txt # Hugging Face Docker Spaces expect port 7860 EXPOSE 7860 ENV PORT=7860 # Start Streamlit on 0.0.0.0:7860 CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0", "--server.enableXsrfProtection=false"]