There are 3 repositories under dockerfile-generator topic.
dfg - Generates dockerfiles based on various input channels.
Dockerfile hierarchy management tool with automatic rebuilding of dependent images when parent changes
Dockerfile Generator for Node.js
T-Reqs is a multi-language requirements file generator which also serves the purpose of preparing a template Dockerfile for working with Docker applications.
GO utility to generate Dockerfiles in different variants from yml data
Example repository with a docker files structure managed by docker-bakery. Illustrates automatic rebuilding process when parent image changes.
generates random Dockerfile using char-rnn (better than yours)
Dockerfile generation
A Graphical User Interface for managing images , volumes , Docker containers and many more ...
Generates Dockerfiles