Dockerizing a Spring Boot Application
Hello Friends,
In this post, we will see how we can dockerize our Spring Boot Application. By dockerizing ,we mean that we are going to run our application as docker container.
Following are the steps involved :
1. Create a Spring Boot Application
2. Install Docker on your machine
3. Create a Docker file in your project
4. Docker build using docker file
5. Docker run
Let us see these steps one by one.
Step 1. Create a Spring Boot Application
Please follow my tutorial How to Create Spring Boot Project With Spring Initializer for steps needed to create a Spring Boot project using Spring Boot Initiailizer.
So once you complete this, you should be ready with springBootApp project in your workspace.