I have mostly seen people using following type of pipeline steps(it varies, but in general this is the flow of steps I have observed)
Process: clone repo -> build -> test -> create docker image -> pushbinary to artifactory -> push image to docker registry
Recently I came across a docker file (multi-stage docker file) which was executing gradle build and test while building image.
I wanted to reach out to this community and check what are the advantages/dis-advantages of having a docker file which does gradle/maven build and test as a part of docker build
?
Please Guide