This is my Dockerfile https://pastebin.com/jL0uUQbW
This is taking 10+ minutes to build in AWS.
Is there any way I can make it fast ?
my suspicion is , base images are heavy to download and that is taking a lot of time to build.
I am not sure which base images would help to reduce build time.
stage 1 is doing a mvn build to create java artifact JAR file. This needs maven and openjdk 11
stage 2 is copying the artifact in another image and adding a shell script to run the java artifact.
stage 2 is my final output which I'll deploy in production.
My concern here is , entire Docker build process is taking 10-14 minutes to complete. Is there any option to make it fast ?