diff --git a/Dockerfile b/Dockerfile index 6e7d777..a626ecd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,5 +25,7 @@ USER app COPY --chown=app --from=build /usr/src/app/build/libs/*-SNAPSHOT.jar /usr/app/config.jar +HEALTHCHECK CMD curl --fail http://localhost:8080/actuator/health || exit 1 + EXPOSE 8080 CMD ["java", "-jar", "/usr/app/config.jar"]