After my yesterday talk at DevConf 2016 I got asked about some tips and tricks how to write Dockerfiles. I know we have plenty of resources for that in Red Hat, Fedora and Project Atomic. So, here we go!
Project Atomic page has a very nice set of tips: projectatomic.io/docs/docker-image-author-guidance/
OpenShift folks have a detailed guidelines for developing images: docs.openshift.com/enterprise/3.0/creating_images/guidelines.html
In Project Atomic we also have collaborative project to write best practises for developing containers: github.com/projectatomic/container-best-practices
If this is not enough for you, check out Honza Horak’s presentation about “Developing containers in an enterprise world”.