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