Best practises for writing Docker files in our Cloud-driven age.
Many companies are embracing Docker as a powerful and flexible tool to
develop, test, package and distribute a broad variety of applications.
In fact, experiences around and inside Container technologies are more and more streamlined with mature features
and best practices.
When it comes to write Docker files, best practices inter alia include:
- Build your images from the smallest possible base image
- Re-use your base containers ; to reduce transfer time
- For persistent data, use data only containers – to replace containers without losing data.