17 lines
617 B
Docker
17 lines
617 B
Docker
|
|
# FleetOps — static analytics SPA served by Caddy.
|
||
|
|
# Coolify auto-detects this Dockerfile; set the app port to 80 and attach the
|
||
|
|
# domain (fleetops.fivetitude.com staging / fleetops.rahamafresh.com prod) in
|
||
|
|
# the Coolify UI. Set the API_BASE env var per app for runtime API-base injection.
|
||
|
|
FROM caddy:2.8-alpine
|
||
|
|
|
||
|
|
COPY Caddyfile /etc/caddy/Caddyfile
|
||
|
|
COPY src/ /srv/
|
||
|
|
|
||
|
|
# Fail the build early on a malformed Caddyfile.
|
||
|
|
RUN caddy validate --config /etc/caddy/Caddyfile
|
||
|
|
|
||
|
|
EXPOSE 80
|
||
|
|
|
||
|
|
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
|
||
|
|
CMD wget -qO- http://localhost/healthz >/dev/null 2>&1 || exit 1
|