# Base image FROM python:3.10-slim # System dependencies RUN apt-get update && apt-get install -y \ build-essential \ libspatialindex-dev \ curl \ git \ && rm -rf /var/lib/apt/lists/* # Set environment variables ENV PYTHONDONTWRITEBYTECODE=1 ENV PYTHONUNBUFFERED=1 # Set working directory WORKDIR /app # Copy and install dependencies COPY requirements.txt . RUN pip install --no-cache-dir --upgrade pip && \ pip install --no-cache-dir -r requirements.txt COPY . . # Expose Streamlit port EXPOSE 7860 # Run the app (HF Spaces expects port 7860) CMD ["streamlit", "run", "app.py", "--server.port=7860", "--server.address=0.0.0.0", "--server.enableCORS=false", "--server.enableXsrfProtection=false"]