diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2022-06-30 12:21:58 +0500 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2022-06-30 12:21:58 +0500 |
commit | 82479dd82b4908e3f9d215dd14f556a657ee8d9e (patch) | |
tree | ac5f2826f8a24cdbf6e02f653270af1226eb250e | |
parent | log real client IP address (diff) | |
download | void-82479dd82b4908e3f9d215dd14f556a657ee8d9e.tar.gz void-82479dd82b4908e3f9d215dd14f556a657ee8d9e.zip |
docker: fix print() showing nothing
-rw-r--r-- | Dockerfile | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -6,4 +6,7 @@ RUN mkdir -p /var/lib/void COPY [".", "/usr/src/"] WORKDIR /usr/src -CMD ["./server.py", "--void", "/var/lib/void/void.state"] +# I don't know why, but in Docker, simple print() statements show nothing: +# https://stackoverflow.com/q/29663459 +# Fixed by adding the -u flag: +CMD ["python3", "-u", "./server.py", "--void", "/var/lib/void/void.state"] |