aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorEgor Tensin <Egor.Tensin@gmail.com>2022-06-30 12:21:58 +0500
committerEgor Tensin <Egor.Tensin@gmail.com>2022-06-30 12:21:58 +0500
commit82479dd82b4908e3f9d215dd14f556a657ee8d9e (patch)
treeac5f2826f8a24cdbf6e02f653270af1226eb250e
parentlog real client IP address (diff)
downloadvoid-82479dd82b4908e3f9d215dd14f556a657ee8d9e.tar.gz
void-82479dd82b4908e3f9d215dd14f556a657ee8d9e.zip
docker: fix print() showing nothing
-rw-r--r--Dockerfile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Dockerfile b/Dockerfile
index 4470ffc..42fa087 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -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"]