This step would need to be added:
apt install -y libjemalloc-dev
Can this configuration be extended with or without a Dockerfile to include a library, in this case libjemalloc?
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
<image>
<builder>paketobuildpacks/builder-jammy-base:latest</builder>
<env>
<BP_JVM_VERSION>21.*</BP_JVM_VERSION>
</env>
</image>
</configuration>
<executions>
<execution>
<goals>
<goal>build-info</goal>
</goals>
</execution>
</executions>
</plugin>
Just configure the Spring Boot Maven Plugin as follows:
Where
builder-imageis a CNF builder, such as: