# Use a minimal base image with Python 3.9 FROM python:3.9-slim # Set working directory WORKDIR /app # Copy all frontend files into the container COPY . . # Install dependencies RUN pip install --no-cache-dir -r requirements.txt # Hugging Face requires port 7860 EXPOSE 7860 # Run Streamlit app CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0", "--server.enableXsrfProtection=false"]