Easy and safe way to make flattened docker image