<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/paketo-buildpacks-the-spring-boot-way-to-build-images-and-more-by-anthony-dahanne-fllkve0dg" -->

---
title: Paketo Buildpacks: the Spring Boot way to build images,...
description: A conference talk introduces Paketo Buildpacks, the Cloud Native Buildpacks (CNB) implementation used by default in Spring Boot to build OCI images,...
canonical: https://daily.dev/posts/paketo-buildpacks-the-spring-boot-way-to-build-images-and-more-by-anthony-dahanne-fllkve0dg
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Paketo Buildpacks: the Spring Boot way to build images, and more! by Anthony Dahanne | daily.dev
og:description: A conference talk introduces Paketo Buildpacks, the Cloud Native Buildpacks (CNB) implementation used by default in Spring Boot to build OCI images,...
og:url: https://daily.dev/posts/paketo-buildpacks-the-spring-boot-way-to-build-images-and-more-by-anthony-dahanne-fllkve0dg
og:image: https://api.daily.dev/og/posts/FllkvE0Dg.png
og:image:alt: Paketo Buildpacks: the Spring Boot way to build images, and more! by Anthony Dahanne
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Paketo Buildpacks: the Spring Boot way to build images, and more! by Anthony Dahanne

**[Spring I/O](https://daily.dev/sources/springio)** · 51 min read · 0 upvotes · 0 comments

## Summary

A conference talk introduces Paketo Buildpacks, the Cloud Native Buildpacks (CNB) implementation used by default in Spring Boot to build OCI images, contrasting them with Dockerfiles. It covers detection/build phases, JVM vendor selection, CA certificate injection, SBOM generation via Syft, Datadog agent integration, and Spring Cloud Bindings for Kubernetes service binding. The bulk of the talk demonstrates Spring Boot performance optimizations available through the buildpack: jar extraction/unpacking, Spring AOT processing, GraalVM native image compilation (fastest startup but with reflection/compatibility caveats), and Spring AOT cache (formerly CDS), which the speaker recommends as the best general-purpose optimization for typical web apps. It closes with a roadmap covering distroless/lightweight base image builders, CycloneDX SBOM support, and expanded package manager support for non-Debian base images.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.youtube.com/watch?v=d7Mv1JTrk80>

## Questions this post answers

### What's the difference between Spring AOT cache and GraalVM native image for Spring Boot performance?

GraalVM native image compiles a Spring Boot app into a standalone binary that starts in about 0.3 seconds instead of 2.5 seconds and roughly halves memory usage, but compilation can take several minutes and any use of reflection or unsupported libraries can break the app at runtime, requiring strong integration test coverage. Spring AOT cache (formerly CDS) requires only a fast training run, does not need GraalVM, and is recommended for typical web apps, while native image suits CLIs and lambda-style workloads.

_Compare native image versus AOT cache trade-offs before locking in a Spring Boot startup strategy, tracked on daily.dev._

### How do Paketo Buildpacks handle custom CA certificates for Java, Node.js, and Go apps without editing a Dockerfile?

A dedicated CA certificate buildpack automatically imports a custom certificate authority at build time when the certificate is provided through a bound volume, invoking keytool for Java or the equivalent mechanism for other runtimes so every team using buildpacks gets the fix without writing their own Dockerfile steps. This buildpack works across languages including Java, Node.js, and Go, so the certificate problem only needs to be solved once organization-wide.

_Standardize custom CA certificate handling across polyglot services by following buildpack-based approaches shared on daily.dev._

### How do you enable Spring AOT cache in a Spring Boot Maven build using Paketo Buildpacks?

Set the BP_SPRING_AOT_ENABLED environment variable when building with the Spring Boot Maven plugin's build-image goal, which triggers Paketo Buildpacks to run a training run using spring.context.exit-on-refresh, generate an application.aot cache file, and bake it into the image automatically, including unpacking the jar since the extracted jar format is required for the cache to work. Spring Boot 3.3 introduced this capability, evolving from the older class data sharing (CDS) feature.

_Wire up AOT cache generation correctly the first time by checking build configuration notes curated on daily.dev._

## Similar posts on daily.dev

- [Building Java Containers Without a Dockerfile: Azul Zulu and Paketo Buildpacks](https://daily.dev/posts/building-java-containers-without-a-dockerfile-azul-zulu-and-paketo-buildpacks-fj7c9xh1v) · Foojay.io · 0 upvotes · 0 comments
- [How buildpacks help enterprises finally operate container security controls at scale](https://daily.dev/posts/how-buildpacks-help-enterprises-finally-operate-container-security-controls-at-scale-eoev0kpfp) · The New Stack · 0 upvotes · 0 comments

---

Tags: [#java](https://daily.dev/tags/java), [#spring-boot](https://daily.dev/tags/spring-boot)

[View this post on daily.dev](https://daily.dev/posts/paketo-buildpacks-the-spring-boot-way-to-build-images-and-more-by-anthony-dahanne-fllkve0dg)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Paketo Buildpacks: the Spring Boot way to build images, and more! by Anthony Dahanne","url":"https://daily.dev/posts/paketo-buildpacks-the-spring-boot-way-to-build-images-and-more-by-anthony-dahanne-fllkve0dg","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/paketo-buildpacks-the-spring-boot-way-to-build-images-and-more-by-anthony-dahanne-fllkve0dg"},"datePublished":"2026-09-27T07:26:36.323Z","dateModified":"2026-09-27T07:53:23.410Z","description":"A conference talk introduces Paketo Buildpacks, the Cloud Native Buildpacks (CNB) implementation used by default in Spring Boot to build OCI images,...","image":"https://i.ytimg.com/vi/d7Mv1JTrk80/sddefault.jpg","thumbnailUrl":"https://i.ytimg.com/vi/d7Mv1JTrk80/sddefault.jpg","isAccessibleForFree":true,"articleSection":"Spring I/O","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Spring I/O","logo":"https://media.daily.dev/image/upload/s--e-TcwM9B--/f_auto,q_auto/v1790493985/logos/springio?_a=BAMAMicg0","url":"https://daily.dev/sources/springio"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/paketo-buildpacks-the-spring-boot-way-to-build-images-and-more-by-anthony-dahanne-fllkve0dg","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"java,spring-boot","timeRequired":"PT51M","video":{"@type":"VideoObject","name":"Paketo Buildpacks: the Spring Boot way to build images, and more! by Anthony Dahanne","description":"A conference talk introduces Paketo Buildpacks, the Cloud Native Buildpacks (CNB) implementation used by default in Spring Boot to build OCI images,...","thumbnailUrl":"https://i.ytimg.com/vi/d7Mv1JTrk80/sddefault.jpg","uploadDate":"2026-09-27T07:26:36.323Z","duration":"PT51M","url":"https://api.daily.dev/r/FllkvE0Dg","embedUrl":"https://www.youtube.com/embed/d7Mv1JTrk80"}}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Spring I/O","item":"https://daily.dev/sources/springio"},{"@type":"ListItem","position":3,"name":"Paketo Buildpacks: the Spring Boot way to build images, and more! by Anthony Dahanne"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/paketo-buildpacks-the-spring-boot-way-to-build-images-and-more-by-anthony-dahanne-fllkve0dg#faq","mainEntity":[{"@type":"Question","name":"What's the difference between Spring AOT cache and GraalVM native image for Spring Boot performance?","acceptedAnswer":{"@type":"Answer","text":"GraalVM native image compiles a Spring Boot app into a standalone binary that starts in about 0.3 seconds instead of 2.5 seconds and roughly halves memory usage, but compilation can take several minutes and any use of reflection or unsupported libraries can break the app at runtime, requiring strong integration test coverage. Spring AOT cache (formerly CDS) requires only a fast training run, does not need GraalVM, and is recommended for typical web apps, while native image suits CLIs and lambda-style workloads. Compare native image versus AOT cache trade-offs before locking in a Spring Boot startup strategy, tracked on daily.dev."}},{"@type":"Question","name":"How do Paketo Buildpacks handle custom CA certificates for Java, Node.js, and Go apps without editing a Dockerfile?","acceptedAnswer":{"@type":"Answer","text":"A dedicated CA certificate buildpack automatically imports a custom certificate authority at build time when the certificate is provided through a bound volume, invoking keytool for Java or the equivalent mechanism for other runtimes so every team using buildpacks gets the fix without writing their own Dockerfile steps. This buildpack works across languages including Java, Node.js, and Go, so the certificate problem only needs to be solved once organization-wide. Standardize custom CA certificate handling across polyglot services by following buildpack-based approaches shared on daily.dev."}},{"@type":"Question","name":"How do you enable Spring AOT cache in a Spring Boot Maven build using Paketo Buildpacks?","acceptedAnswer":{"@type":"Answer","text":"Set the BP_SPRING_AOT_ENABLED environment variable when building with the Spring Boot Maven plugin's build-image goal, which triggers Paketo Buildpacks to run a training run using spring.context.exit-on-refresh, generate an application.aot cache file, and bake it into the image automatically, including unpacking the jar since the extracted jar format is required for the cache to work. Spring Boot 3.3 introduced this capability, evolving from the older class data sharing (CDS) feature. Wire up AOT cache generation correctly the first time by checking build configuration notes curated on daily.dev."}}]}
```

