how to dockerize a Spring Boot application
Download the repository.
Check the project.
Check the application.
Add configuration to dockerize the Spring Boot application.
Generate a .jar file.
Build a Spring Boot Docker image.
Run the Spring Boot Docker image in a container.
https://anywhere.epam.com/en/blog/how-to-dockerize-spring-boot-application