add python notes

This commit is contained in:
Akbar Rahman 2021-08-20 13:21:38 +01:00
parent e846cf0e6c
commit 512282e379
Signed by: alvierahman90
GPG Key ID: 20609519444A1269

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).