# Use a slim Python image for efficiency FROM python:3.11-slim # Install system dependencies for XGBoost and DuckDB RUN apt-get update && apt-get install -y \ build-essential \ && rm -rf /var/lib/apt/lists/* # Set the working directory WORKDIR /app # Cache Buster: v1.0.1 COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Copy your code into the container COPY . . # Hugging Face Spaces run on port 7860 EXPOSE 7860 # Tell Docker to run your main script CMD ["python", "app.py"]