To run your Python app with Docker, you first need a Dockerfile. It is the recipe for your image: a text file, named Dockerfile , that lists the steps to build it.