jlink with Spring Boot services

September 28, 2020
Java, Docker
java, openjdk, jdk, DockerImages, Docker, jvm, jre, maven, Spring Boot

This always has been my priority because… I don’t want to pay extra in ECR so… I have to create small docker images. we need to list the classpath of all the libraries that we are going to use the follow command in maven ot save all of them in a file mvn dependency:build-classpath -Dmdep.includeScope=runtime -Dmdep.outputFile=classpath once we have all the libraries in a file… we need are going to put everything in a environment variable that way we can use it later on. ...