# Use a minimal Python base image FROM python:3.9-slim # Set working directory WORKDIR /app # Copy requirements first for caching COPY requirements.txt . # Install dependencies RUN pip install --upgrade pip && \ pip install -r requirements.txt # Copy all files (including model folder) into container COPY . . # Expose Streamlit port EXPOSE 8501 # Run the Streamlit app CMD ["streamlit", "run", "app.py", \ "--server.port=8501", \ "--server.address=0.0.0.0", \ "--server.enableXsrfProtection=false"]