diff --git a/Dockerfile b/Dockerfile index 4f6a800..5ff8fb6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -36,6 +36,12 @@ COPY --from=composer /build/public /var/www/html # |-------------------------------------------------------------------------- RUN a2enmod headers rewrite +# |-------------------------------------------------------------------------- +# | enable metrics +# |-------------------------------------------------------------------------- +RUN apt update && apt install curl +HEALTHCHECK CMD curl --fail http://localhost || exit 1 + # |-------------------------------------------------------------------------- # | expose http port # |--------------------------------------------------------------------------