# 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