Generate dockerfiles on the fly from template