dockerfile-and-jvm-tuning
Installation
SKILL.md
Dockerfile and JVM Tuning
When to use
Invoke when packaging a Spring Boot service (or any JVM service) into a container image for deployment. Use before wiring CI image builds. Do not invoke for non-JVM services.
Inputs
- Path to the built fat JAR (or build tool: Maven/Gradle).
- Target base image preference (distroless
gcr.io/distroless/java21-debian12:nonroot, Eclipse Temurin, or jlink runtime). - Expected memory budget (container memory limit).
Output contract
Generated Dockerfile and runtime tuning MUST conform to: