From the course: Spring Boot 3 Essential Training

Unlock this course with a free trial

Join today to access over 24,400 courses taught by industry experts.

Containerizing Spring Boot applications

Containerizing Spring Boot applications - Spring Boot Tutorial

From the course: Spring Boot 3 Essential Training

Containerizing Spring Boot applications

- [Instructor] In today's world of containerization, Docker images are one of the most common build patterns for applications with any language, and Spring Boot based applications are clearly no different. Building a Docker image with Spring Boot is another one of those freebies that you get from the build plugins that are added via the Spring initializer. The builds script, depending on your dependency management, and build system of choice, provides a way to build an image. For Maven for instance, you would use the Spring Boot plugin with the build image goal, For Gradle, you can use the bootBuildImage argument for the build command. That being said, as with any application framework or technology, you can always build a Docker file, and control the actual lifecycle of the Docker build process, which we're going to do together here in a minute. One of the primary reasons for doing this is more control. You have control over how and what you put into your final image. You get control…

Contents