From 39824ca28b37a69c72f5aaee1ca80d2fb1c2b769 Mon Sep 17 00:00:00 2001 From: Egg-03 <111327101+eggy03@users.noreply.github.com> Date: Tue, 14 Jul 2026 14:14:30 +0530 Subject: [PATCH] feat: add healthcheck Signed-off-by: Egg-03 <111327101+eggy03@users.noreply.github.com> --- Dockerfile | 2 ++ Dockerfile.native | 1 + 2 files changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index 1a33fab..3ef3c2c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -24,5 +24,7 @@ VOLUME /tmp # Copy the JAR from the build stage COPY --from=build --chown=papertrail:papertrail /app/target/quarkus-app bot + USER papertrail +HEALTHCHECK CMD curl -f http://localhost:9000/q/health || exit 1 ENTRYPOINT ["java","-jar","bot/quarkus-run.jar"] \ No newline at end of file diff --git a/Dockerfile.native b/Dockerfile.native index 39c030e..351f6db 100644 --- a/Dockerfile.native +++ b/Dockerfile.native @@ -31,4 +31,5 @@ WORKDIR /app COPY --from=build /native-build/target /app/bot USER papertrailbot +HEALTHCHECK CMD curl -f http://localhost:9000/q/health || exit 1 ENTRYPOINT ["./bot/papertrailbot-runner"] \ No newline at end of file