add python notes
This commit is contained in:
parent
e846cf0e6c
commit
512282e379
25
python.md
Executable file
25
python.md
Executable 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).
|
||||||
|
|
Loading…
Reference in New Issue
Block a user