change the Dockerfile to include the -u for logging
The Dockerfile, when exporting a Linux Container, has the command:
CMD python app.py
this is buffering the output of the app.py command, so you do not see the logged items as needed.
If you change this to:
CMD python -u app.py
It will not buffer the output.