I have a couple of question about usage of docker with Spring Boot.
First: following Spring official tutorials, I've seen how to build a docker image: you start from a JDK image, copy (using docker file syntax) the uber-jar into the container, and then tell docker how to run a
java -jar myfatjar.jar command.
Besides this 'classical' approach, I've also seen someone following this approach: he pulls a docker image of a given JDK, and uses it as a "virtual" JDK to run an uberjar regularly located on host file system.
This approaches seems to be easier - you have just to copy your uberjar in a regular file-system, but I wonder if it may have some drawbacks.
Second question: what about memory usage ? Even with a small boot application, the memory footprint seems important - a small 'hello-world' REST application requires +120MB of memory. Do you have any advice to reduce spring boot footprint ?
Thanks in advance.