3 Commits

2 changed files with 9 additions and 1 deletions
+4 -1
View File
@@ -13,6 +13,7 @@ RUN apt-get update \
libidn11 \
liblua5.1-expat0 \
libssl1.0.0 \
lua-bitop \
lua-dbi-mysql \
lua-dbi-postgresql \
lua-dbi-sqlite3 \
@@ -36,4 +37,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"]
+5
View File
@@ -1,6 +1,11 @@
#!/bin/bash
set -e
if [[ "$1" != "prosody" ]]; then
exec prosodyctl $*
exit 0;
fi
if [ "$LOCAL" -a "$PASSWORD" -a "$DOMAIN" ] ; then
prosodyctl register $LOCAL $DOMAIN $PASSWORD
fi