Using Jenkins (2.2x) pipeline using the \'Docker Build and Publish Plugin\'(v 1.3.2), Docker plugin (v 1.2.0). The Dockerfile is as below:
FROM openjdk:8 EXPOSE 8