to docerise your spring microservice put this file in your microserve (target folder) go inside this file and run
docker build -t singh:1.1 .
docker images
docker run -d -p 8080:7079 singh:1.1
https://learning-ocean.com/tutorials/docker
https://www.youtube.com/watch?v=ETBj0oxe81o&list=PL6XT0grm_Tfje2ySztzdhp0HmCjVj5P4z