18 lines
626 B
Docker
18 lines
626 B
Docker
FROM python:3.12-slim
|
|
|
|
COPY --from=ghcr.io/astral-sh/uv:latest /uv /usr/local/bin/uv
|
|
|
|
WORKDIR /app
|
|
COPY pyproject.toml ./
|
|
RUN uv pip install --system -r pyproject.toml
|
|
RUN playwright install-deps firefox
|
|
RUN camoufox fetch \
|
|
&& python -c "from camoufox.pkgman import camoufox_path; p = camoufox_path(download_if_missing=False); print('Camoufox verified at', p)"
|
|
|
|
COPY *.py ./
|
|
COPY property-data/arcgis_data.parquet /data/arcgis_data.parquet
|
|
|
|
HEALTHCHECK --interval=30s --timeout=5s --retries=3 \
|
|
CMD python -c "import urllib.request; urllib.request.urlopen('http://localhost:1234/health')"
|
|
|
|
CMD ["python3", "main.py"]
|