~/talk

Dockerfiles, Buildpacks, Jib and more, best way to run Java code in Containers?

Talkat Voxxed Days Zürich 2025 · on Tuesday, 2025-03-25· [java, devops-and-delivery]
slides:none on file

Compares concrete workflows and shows what actually changes: a plain copy-based image embeds a 23.3 MB Spring Boot JAR as a single layer, splitting JAR into dependencies/resources/classes yields a 6.17 KB changing layer for fast rebuilds, using jlink + jdeps produces a custom JRE and cuts images to ~184 MB or under 100 MB on Alpine, and Jib (Maven/Gradle plugin) builds images without a Docker daemon and is fastest for repeatable CI builds; Cloud Native Buildpacks (paketo) automates detection and supports jlink. The tradeoff is ~4 lines versus ~40-line optimized Dockerfiles.

AI-written summary · about

  1. 0:00Introduction and context
  2. 2:39Containers basics
  3. 6:24Evolution of Dockerfiles
  4. 9:21Advanced Dockerfile techniques
  5. 13:02Optimizing image structure
  6. 16:53Custom runtimes with jlink
  7. 20:20Live demonstration
  8. 35:00Google Jib and automation
  9. 38:56Buildpacks and final strategy
  10. 43:31Conclusion and resources
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.