Gradle bootBuildImage elastic-apm-agent.jar

Im trying to build Java Spring Boot gradle for docker image, im using ./gradlew bootBuildImage command and it work fine. But im here to ask the way for add/copy the “elastic-apm-agent.jar” file into docker image while using command ./gradlew bootBuildImage.
Volume Mount, Docker file already tested, but i still want another way!

I guess you should better ask that in a Spring Boot community. :slight_smile: