From f88f17bb65eec811b69f366d80a70e7605d01a64 Mon Sep 17 00:00:00 2001 From: lub Date: Sun, 12 Jul 2020 13:04:43 +0200 Subject: [PATCH] use unbuffered output this prints stdout directly instead of buffering it. otherwise docker logs is useless because its not realtime --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 51f4402..1ba224c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -14,4 +14,4 @@ RUN pip install -r requirements.txt COPY scrape.py ./ USER nobody:nogroup -CMD [ "python", "scrape.py" ] \ No newline at end of file +CMD [ "python", "-u", "scrape.py" ] \ No newline at end of file