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.

This commit is contained in:
Matthew Wild
2016-02-04 19:17:11 +00:00
parent 82e59c9091
commit bed0d8e598
+3 -1
View File
@@ -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"]