This ticket is regarding the Boot Gradle plugin.

When packaging OCI images, neither the BootBuildImage task nor the paketo buildpack explains how to customize the image. One of the most common examples is including additional files in the image (ADD command).

Comment From: wilkinsona

The philosophy of CNBs is that a builder and its buildpacks encapsulate predictable and reusable logic. As a result, customisation options for the user of a builder are fairly limited. If you want to add additional files to an image, a custom builder with one or more additional buildpacks is the approach that I would recommend. There is some information in the Paketo documentation about creating a custom builder and buildpack. The Paketo Slack may also be a useful resource.

Comment From: asarkar

@wilkinsona It seems much simpler to forego the buildpack and simply use one of the Gradle Docker plugins, like bmuschko/gradle-docker-plugin, and craft the Dockerfile accordingly.

Comment From: wilkinsona

For some use cases and situations, that is indeed the simpler option. We don't really consider one option to be better than the other and each has its own pros and cons. Just use whichever works best for the problem at hand.