FROM python:3.10-slim WORKDIR /app # Install system dependencies (needed for geopandas, etc.) COPY packages.txt . RUN apt-get update && xargs apt-get install -y < packages.txt && rm -rf /var/lib/apt/lists/* # Install Python dependencies COPY requirements.txt . RUN pip install --no-cache-dir -r requirements.txt # Copy app files COPY app.py . COPY models/ models/ COPY data/ data/ # HF Spaces requires port 7860 EXPOSE 7860 CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0"]