We have created a simple spring boot applicaiton and exposed an endpoint.
mvn package dockerfile:build
To see the newly created docker image, run command - docker image ls
docker run -p 5000:8080 spring-boot-docker-example
docker run -d -p 8080:8080 spring-boot-docker-example