Skip to content

Commit

Permalink
Run as user 'prosody', and run prosody instead of prosodyctl. Also se…
Browse files Browse the repository at this point in the history
…t __FLUSH_LOG environment variable to tell Prosody it needs to flush its logs after writing. Fixes #23 and fixes #25.
  • Loading branch information
mwild1 committed Feb 4, 2016
1 parent 82e59c9 commit bed0d8e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

0 comments on commit bed0d8e

Please sign in to comment.