I went through this tutorial today and concepts are starting to sink in and the power of it.
I even had to change the Python version in the Docker file to make the Flask App work. When I received the original error–I copied the error code and did a search. This post helped me realize the error was in fact in the code and not in the docker file.