Multi stage build is the new,  exciting and useful  feature released in version 17.05  and makes  Dockerfile super powerful and adaptable for every environment and build/deploy stage.

What was the problem without it? 

 

Advantages

  • No need for multiple docker files
  • No need to copy artifacts from containers/stages to work dir back and forth
  • Final image is lightweight. No build tools

Solution

 

 

Leave a reply

Your email address will not be published. Required fields are marked *