apt-get
install
-y
--no-install-recommends
\ build-essential
ca-certificates
pkg-config
wget
\ libidn11-dev
libidn2-dev
libssl-dev
\ lua-bitop
lua-dbi-sqlite3
lua-event
lua-expat
\ lua-filesystem
lua-sec
lua-socket
\ rm
-rf
/var/lib/apt/lists
# create the prosody user and it's home dir useradd
-u
101 -d
/var/lib/prosody
-U
-m
-r
-s
/bin/false
prosody
# download and install prosody from an hg archive wget
https://hg.prosody.im/trunk/archive/tip.tar.gz
&& \ tar
-C
prosody
--strip-components
=1 -zxf
tip.tar.gz
&& \ ./configure
--ostype
=debian
--prefix
=/usr
&& \ mkdir
-p
/etc/prosody/conf.d/
/etc/prosody/secrets.d/
# download and install prosody-modules from an hg archive wget
https://hg.prosody.im/prosody-modules/archive/tip.tar.gz
&& \ tar
-C
/usr/lib/prosody/modules
--strip-components
=1 -zxf
tip.tar.gz
&& \ # download and install the prosody jetbrains hub auth module wget
https://hg.sr.ht/~grim/prosody_mod_auth_jetbrains_hub/archive/tip.tar.gz
&& \ mkdir
-p
/usr/lib/prosody/modules/mod_auth_jetbrains_hub/
&& \ tar
-C
/usr/lib/prosody/modules/mod_auth_jetbrains_hub/
--strip-components
=1 -zxf
tip.tar.gz
&& \ COPY prosody.cfg.lua
/etc/prosody/prosody.cfg.lua
mkdir
-p
/run/prosody/
&& \ chown
-R
prosody:prosody
/run/prosody/