| FROM mcr.microsoft.com/playwright/python:v1.49.1-jammy | |
| WORKDIR /app | |
| COPY requirements.txt /app/requirements.txt | |
| RUN pip install --no-cache-dir -r /app/requirements.txt | |
| COPY geo_service /app/geo_service | |
| COPY runner_service /app/runner_service | |
| COPY scripts /app/scripts | |
| COPY dify /app/dify | |
| COPY db /app/db | |
| ENV PYTHONUNBUFFERED=1 | |
| ENV PORT=7860 | |
| EXPOSE 7860 | |
| # Hugging Face Spaces sets $PORT; use it if present. | |
| CMD bash -lc 'uvicorn geo_service.app:app --host 0.0.0.0 --port ${PORT:-7860}' | |