From bed0d8e5981b1b9ebb9b9b8dfd5ca9b9dcf51143 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Thu, 4 Feb 2016 19:17:11 +0000 Subject: [PATCH] Run as user 'prosody', and run prosody instead of prosodyctl. Also set __FLUSH_LOG environment variable to tell Prosody it needs to flush its logs after writing. Fixes #23 and fixes #25. --- Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 5b39a83..fed4752 100644 --- a/Dockerfile +++ b/Dockerfile @@ -36,4 +36,6 @@ COPY ./entrypoint.sh /entrypoint.sh ENTRYPOINT ["/entrypoint.sh"] EXPOSE 80 443 5222 5269 5347 5280 5281 -CMD ["prosodyctl", "start"] +USER prosody +ENV __FLUSH_LOG yes +CMD ["prosody"]