Last active
August 27, 2019 13:54
-
-
Save vmleon/b2cbed986af9846704e15826ea2e8136 to your computer and use it in GitHub Desktop.
Dockerfile Spring Boot application
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM openjdk:jre-alpine | |
WORKDIR /app | |
COPY libs libs/ | |
COPY resources resources/ | |
COPY classes classes/ | |
ENTRYPOINT ["java", "-cp", "/app/resources:/app/classes:/app/libs/*", "space.vmleon.MyApplication"] | |
HEALTHCHECK CMD wget --quiet --tries=1 --spider http://localhost:8080/actuator/health || exit 1 | |
EXPOSE 8080 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment