# Use a lightweight Python image FROM python:3.12-slim # Set working directory WORKDIR /app # Copy project files COPY . . # Install dependencies RUN pip install --no-cache-dir -r requirements.txt # Expose Hugging Face expected port EXPOSE 7860 # Start Streamlit server on Hugging Face port CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0", "--server.enableCORS=false", "--server.enableXsrfProtection=false"]