Use builder-jammy-java-tiny when using Buildpacks
See gh-42508
This commit is contained in:
committed by
Moritz Halbritter
parent
d43827146b
commit
416413957a
@@ -33,7 +33,7 @@ This means you can just type a single command and quickly get a sensible image i
|
||||
The resulting image doesn't contain a JVM, instead the native image is compiled statically.
|
||||
This leads to smaller images.
|
||||
|
||||
NOTE: The CNB builder used for the images is `paketobuildpacks/builder-jammy-tiny:latest`.
|
||||
NOTE: The CNB builder used for the images is `paketobuildpacks/builder-jammy-java-tiny:latest`.
|
||||
It has small footprint and reduced attack surface, but you can also use `paketobuildpacks/builder-jammy-base:latest` or `paketobuildpacks/builder-jammy-full:latest` to have more tools available in the image if required.
|
||||
|
||||
|
||||
|
||||
@@ -66,7 +66,7 @@ Assuming an AOT processed Spring Boot executable jar built as `myproject-0.0.1-S
|
||||
|
||||
[source,shell]
|
||||
----
|
||||
$ pack build --builder paketobuildpacks/builder-jammy-tiny \
|
||||
$ pack build --builder paketobuildpacks/builder-jammy-java-tiny \
|
||||
--path target/myproject-0.0.1-SNAPSHOT.jar \
|
||||
--env 'BP_NATIVE_IMAGE=true' \
|
||||
my-application:0.0.1-SNAPSHOT
|
||||
|
||||
Reference in New Issue
Block a user