Companion code for "Dockerizing Spring Boot 4: Layered Jars, Buildpacks, Distroless and Image Size Benchmarks". Fat jar on JDK and JRE, layered jar on Debian, Alpine and distroless, jlink, the JDK 25 AOT cache, Paketo buildpacks and Jib, each measured for size on disk and pushed, rebuild delta, startup, user and shell. Also PID 1 and signal handling, the jdeps module gap, AOT cache mismatches and buildpacks memory calculation. Transcripts in docs/output/, regenerated by scripts/run-all.sh. Co-Authored-By: Claude Opus 5 <[email protected]> Claude-Session: https://claude.ai/code/session_01C3TETMrqVUWeFkNtz3Jbo3
5 lines
206 B
Docker
5 lines
206 B
Docker
# 1. The Dockerfile most tutorials start with: the whole JDK, the whole fat jar, one layer for both.
|
|
FROM eclipse-temurin:25-jdk
|
|
COPY target/app.jar /app/app.jar
|
|
ENTRYPOINT ["java", "-jar", "/app/app.jar"]
|