FROM python:3.11-slim # Set the working directory WORKDIR /app # Install system dependencies for Streamlit and health checks RUN apt-get update && apt-get install -y \ build-essential \ curl \ git \ && rm -rf /var/lib/apt/lists/* # Copy requirements and install COPY requirements.txt . RUN pip3 install --no-cache-dir -r requirements.txt # Copy all files from your root (including app.py) into the container COPY . . # Expose the Hugging Face default port EXPOSE 7860 # Run the app from the root directory ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0", "--server.enableCORS=false", "--server.enableXsrfProtection=false"]