Today I have successfully created my first docker image of a webapp for my vps. The image had a total size of around 580 mb of which the 55 is the debian base image and the 430 is the java folder to run the app inside the container (I copied jdk-11.0.1). This size is unacceptable, and as I am not a totally docker aware guy I would like to ask for the alternative solutions to run the app inside the container. I tried with alpine base image (almost 5.6mb) and I was not able to run java in it. The main culprit though is the java folder which is extremely big. How can I reduce its size to only the needed files? Anyone has any solutions?