# Use a minimal Python 3.9 base image FROM python:3.9-slim # Set the working directory inside the container WORKDIR /app # Copy all files from the current directory to the container COPY . . # Install Python dependencies RUN pip3 install -r requirements.txt # Expose port 7860 -- REQUIRED by Hugging Face Spaces # (HF Spaces routes all external traffic to port 7860) EXPOSE 7860 # Start the Streamlit app on port 7860 CMD ["streamlit", "run", "app.py", \ "--server.port=7860", \ "--server.address=0.0.0.0", \ "--server.enableXsrfProtection=false"]