What I mean, is that I can simply run a command or download a .zip file that results in having a Dockerfile with the whole development environment baked in and includes not just Flask and MySQL set up, but some sort of sample nontrivial web application that already has tables made for users, posts, and that standard sort of content, along with the Python etc. code to go along with it. This would be like cloning a demo Python/Flask app from git, except it comes with a Dockerfile that configures the database, creates database users and tables, etc. A Dockerfile for other developers. Advice?
This question seems to be in two parts:
- How to deploy a flask+database app in Docker?
- Is there a non-trivial application to use as example?
The second part is difficult to answer, it will depend on what you consider a good example. However, an example app with the features that you want can be deployed in several ways, and will work the same if it is in Docker or otherwise.
The Docker Labs flask example contains a basic example of how to deploy a Flask app in a Docker container.
Something more appropriate to what you are looking for though is the combination of web app and backing database. For this you likely want Docker-Compose - specifically the example of Docker Compose for a Django and postgresql app