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:
+3
-1
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user