Generate dockerfiles from template