Skip to content

Instantly share code, notes, and snippets.

@vmleon
Last active August 27, 2019 13:54
Show Gist options
  • Save vmleon/b2cbed986af9846704e15826ea2e8136 to your computer and use it in GitHub Desktop.
Save vmleon/b2cbed986af9846704e15826ea2e8136 to your computer and use it in GitHub Desktop.
Dockerfile Spring Boot application
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