Download the assignment files from the provided link.
Install nodejs with "sudo apt install nodejs" command.
Run the following command to install dependencies: command - "npm install" This will generate node_modules and package-lock.json.
Command - "node main.js"
command - "docker build -t node-app ."
command - "docker run -d -p 3000:3000 node-app"
Access the API at http://localhost:3000 and you should see the response "Hello, World!".
write a docker-compose file ---
- Run following Command to start container command - "docker-compose up -d