https://gist.github.com/jujhars13/e978bae3ead9d066d0da07119a26b10f
An example of the final Dockerfile is in this repo.
docker build -t '<tag-of-our-choice>' .
To test locally
docker run -p 8080:8080 <tag-of-our-choice>
Sign up to hub.docker.com
Create a repository A. Repositories B. Create repository
Tag your local image with the same name as your remote repo. eg:
docker tag '<tag-of-our-choice>' <your-user-name>/<image-name>:tagname
docker push <your-user-name>/<image-name>:tagname