aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-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"]