martin/.github/files/multi-platform.Dockerfile
Kacper Golinski 1a2e381043
add HEALTHCHECK instruction to the Dockerfile (#1397)
Since Martin gives us `/health` endpoint we could use it by default in
the Dockerfile.

I've added extra info to the doc about
https://github.com/willfarrell/docker-autoheal but not sure if that's
ok. I can remove it.
2024-07-03 17:35:57 -04:00

9 lines
322 B
Docker

FROM alpine
ARG TARGETPLATFORM
LABEL org.opencontainers.image.description="Blazing fast and lightweight tile server with PostGIS, MBTiles, and PMTiles support"
COPY target_releases/$TARGETPLATFORM/* /usr/local/bin
HEALTHCHECK CMD wget --spider http://localhost:3000/health || exit 1
ENTRYPOINT ["/usr/local/bin/martin"]