Run a Java Application with Embedded Jetty Server on Docker

I am new to docker and I have a java application that runs on embedded jetty server that I want to run in a docker container.
As I understood from my readings, I need to create a dockerfile to create the image then run it on a container. But now I am a little confused while constructing the dockerfile. What is the base image I should use; should it be jetty image or java8 image?

Source: StackOverflow