File size: 491 Bytes
35bdde1 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | 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}'
|