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