Skip to content

Docker healthcheck CMD using pure java

License

Notifications You must be signed in to change notification settings

Diluka/healthcheck-java

Repository files navigation

healthcheck-java

Docker healthcheck CMD using pure java

ENV SERVER_PORT 8080
EXPOSE $SERVER_PORT

ADD 'https://github.com/Diluka/healthcheck-java/releases/download/<LATEST>/healthcheck.jar' healthcheck.jar
HEALTHCHECK --start-period=30s CMD java -jar healthcheck.jar http://localhost:$SERVER_PORT/actuator/health