This is the simplest possible Java webapp for testing servlet container deployments. It should work on any container and requires no other dependencies or configuration.
docker-tomcat-satylearning -----A basic tutorial on running a web app on Tomcat using Docker - SATYLearning - Subscribe my youtube channel
Ref: https://github.com/arun-gupta/docker-kubernetes-hello-world https://github.com/efsavage/hello-world-war
########### Steps ####################
-
Install Docker.
-
Clone this repository - $ git clone https://github.com/chinni4321/helloworld.git](https://github.com/chinni4321/helloworld-project-1.git
-
cd helloworld-project-1 # from your root directory
-
mvn clean install # Build using maven command
-
$docker build -t helloworld .
-
docker run -dt -p 9191:8080 imagename/id