Here is how dbuild work
- Build an image (by installing the scripts they have and install appropriate packages) from a base image downloaded from dockerhub (they use arguments for distribution etc to determine correct image)
- Create the container in each command/step (using the image from previous step)
- do docker run with the command in each step (its attaching /home/buildd/build directory from host to container where the builds will save the artifacts)
- Once done with the command, stop the container
- Then commit the container - which means create image out of that container
Problems in this approach
- docker base image (from dockerhub) may get updated on which we dont have any control