add python notes

This commit is contained in:
Akbar Rahman 2021-08-20 13:21:38 +01:00
parent e2f940f463
commit 4ea873782b

25
python.md Executable file
View File

@ -0,0 +1,25 @@
---
author: Alvie Rahman
date: \today
title: Python
tags: [ docker, python, programming, io ]
---
# Issues
## No log output when running in docker
Change line beginning with `CMD` from:
```Dockerfile
CMD [ "python", "app.py" ]
```
to:
```Dockerfile
CMD [ "python", "-u", "app.py" ]
```
This disabled output buffering (stdout and stderr).