add health check into docker container

Signed-off-by: Peter Siegmund <developer@mars3142.org>
This commit is contained in:
2024-10-15 09:56:11 +02:00
parent 399a134594
commit 2564a3827f

View File

@@ -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"]