fleetnow/Dockerfile
kianiadee 3d420fa82e feat: FleetNow merged live+trips map SPA (nginx/Coolify)
Single-file MapLibre SPA merging live vehicle positions and historical
trips into one console. Reads the existing dashboard read-API
(fleetapi.rahamafresh.com); served as a static nginx image for Coolify.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-05 21:56:01 +03:00

18 lines
737 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
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