Buildpacks for Spring Boot: no Dockerfiles, no hassle — just production-ready container images in one command.
Tired of maintaining Dockerfiles? In this tutorial, you’ll learn how to use buildpacks to create optimized Spring Boot containers — fast, secure, and cloud-ready — with just one command.
We’ll show what happens under the hood: automatic dependency detection, layered image creation, memory tuning, SBOM generation, and how to tweak builds with just a few plugin options.
Need faster startup, smaller image size, or JFR monitoring? Buildpacks can handle it — and we’ll show you how.
00:00 Intro & What Are Buildpacks
00:30 How Buildpacks Work: Detect & Build Phases
01:02 Builders Explained (Stack, Lifecycle, Toolboxes)
01:34 One-Command Build with Pack, Maven, or Gradle
01:51 Under the Hood: Build Log & Stages
02:28 Which Buildpacks Are Used in Spring Boot
03:18 Layered JARs in Spring Boot
03:59 JVM Memory Calculator & Auto Settings
04:49 Native Memory Tracking & Java Options
05:20 What Is SBOM & How to Extract It
06:47 Image Size, Startup Time, and Defaults
07:21 Tuning JVM: Type, Version, GC, etc.
08:00 Choosing a Builder: Jammy, Alpaquita & Others
09:20 Using jlink to Reduce Image Size
10:13 Enabling CDS & Spring AOT for Fast Startup
11:09 Native Image Build with Buildpacks
11:43 Enable JFR & JMX Monitoring
13:21 Full JMX Setup for Remote Monitoring
14:23 Disable Native Memory Tracking
14:40 Conclusion & What’s Next
Buildpacks project on GitHub:
https://github.com/paketo-buildpacks
Learn more in our blog post:
https://bell-sw.com/blog/how-to-use-b...
https://bell-sw.com/blog/how-to-use-b...