Docker Compose vs Multi-Stage Build

Viewed 10930

With this new version of Docker, Multi-Stage build gets introduced, at least I'd never heard of it before. And the question I have now is, should I use it like a standard Compose file?

I used docker-compose.yaml to start containers where many images where involved, one for the web server and one for the data base. With this new multi-stage build, can I use one single Dockerfile with two FROM commands and that's it?

Will this Multi-stage build eventually kill Compose (since images are smaller)?

2 Answers
Related