add health check into docker container

Signed-off-by: Peter Siegmund <developer@mars3142.org>
This commit is contained in:
2024-10-15 09:55:38 +02:00
parent e949d73e82
commit a191294b17

View File

@@ -25,5 +25,7 @@ USER app
COPY --chown=app --from=build /usr/src/app/build/libs/*-SNAPSHOT.jar /usr/app/edge.jar
HEALTHCHECK CMD curl --fail http://localhost:8080/actuator/health/liveness || exit 1
EXPOSE 8080
CMD ["java", "-jar", "/usr/app/edge.jar"]