| FROM python:3.11-slim | |
| WORKDIR /app | |
| # Install dependencies first (cached layer) | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy application code, logo, and data files | |
| COPY app.py . | |
| COPY logo.png . | |
| COPY LL87_with_pluto.csv . | |
| COPY LL84_with_pluto.csv . | |
| COPY map_pluto.csv . | |
| # Hugging Face Spaces expects port 7860 | |
| EXPOSE 7860 | |
| # Streamlit config: disable CORS/XSRF for HF Spaces, set port | |
| ENV STREAMLIT_LAUNCHED=1 | |
| HEALTHCHECK CMD curl --fail http://localhost:7860/_stcore/health || exit 1 | |
| ENTRYPOINT ["streamlit", "run", "app.py", \ | |
| "--server.port=7860", \ | |
| "--server.address=0.0.0.0", \ | |
| "--server.headless=true", \ | |
| "--browser.gatherUsageStats=false"] | |