fleetnow/Dockerfile
david kiania 25f49a0f27 feat(map): toggleable overlay layers + Shell fuel stations (232)
Add a data-driven overlay system: an OVERLAYS registry + generic addOverlay()
that renders each layer as a MapLibre symbol layer (auto-declutter via
icon-allow-overlap:false, ~8->16px zoom-scaled icon), plus a collapsible
"Layers" control to toggle each on/off (all OFF by default). First layer:
Shell stations from layers/shell_stations.geojson (232 pts, OSM kenya-260605),
11px Shell-yellow pump icon. Dockerfile now copies layers/ into nginx. Adding
the next layer = drop a .geojson + one registry entry.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-08 21:46:30 +03:00

21 lines
868 B
Docker

# FleetNow — static single-file SPA served by nginx.
# Coolify auto-detects this Dockerfile; set the app's port to 80 and attach
# the domain (fleetnow.rahamafresh.com) in the Coolify UI — Traefik + LE are
# wired automatically from there.
FROM nginx:1.27-alpine
# Drop the stock default site, add ours.
RUN rm -f /etc/nginx/conf.d/default.conf
COPY nginx.conf /etc/nginx/conf.d/fleetnow.conf
# The whole app is one self-contained file (inline CSS/JS; MapLibre from a CDN).
COPY index.html /usr/share/nginx/html/index.html
# Static map-overlay data (toggleable layers: gas stations, etc.), served at /layers/.
COPY layers/ /usr/share/nginx/html/layers/
EXPOSE 80
# Coolify reads this; also handy for `docker ps` health.
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
CMD wget -qO- http://localhost/healthz >/dev/null 2>&1 || exit 1