A spy satellite simulator in your browser, except the data is real. Live open source spatial intelligence on a photorealistic 3D globe.
JavaScript 3d-globecesiumflight-trackinggeospatialgeospatial-intelligencegisosintphotogrammetrysatellite-trackingspatial-intelligencewebglworldview
(っ▀¯▀)つ -- Issue #1240: added docker health checks
John Rogersf81ef406f7ca
diff --git a/Dockerfile b/Dockerfileindex d34f4887a..4628279af 100644--- a/Dockerfile+++ b/Dockerfile@@ -39,6 +39,11 @@ COPY --chown=node:node . .ENV HOST=0.0.0.0ENV PORT=4173EXPOSE 4173+# node:slim has no curl, so probe with Node's built-in fetch. 127.0.0.1 is+# always on the Host allowlist, and the generous start period covers Vite's+# first-run dependency optimisation.+HEALTHCHECK --interval=30s --timeout=10s --start-period=30s --retries=3 \+ CMD ["node", "-e", "fetch('http://127.0.0.1:'+(process.env.PORT||4173)+'/').then((r)=>process.exit(r.ok?0:1),()=>process.exit(1))"]# The launcher is `npm run dev` plus one step: it trusts the container's# gateway address for Provider Settings, because that is where Docker delivers# the host's own browser from (never 127.0.0.1). See scripts/docker-start.mjs.