jitsi-deployment/prosody/Dockerfile

57 lines
1.6 KiB
Docker

ARG JITSI_REPO=jitsi
FROM ${JITSI_REPO}/base
ADD https://prosody.im/files/prosody-debian-packages.key /tmp/prosody.key
RUN \
apt-key add /tmp/prosody.key \
&& rm -f /tmp/prosody.key \
&& echo "deb http://packages.prosody.im/debian stretch main" > /etc/apt/sources.list.d/prosody.list \
&& apt-dpkg-wrap apt-get update \
&& apt-dpkg-wrap apt-get install -y \
prosody \
libssl1.0.2 \
sasl2-bin \
libsasl2-modules-ldap \
lua-basexx \
liblua5.2-dev \
libsasl2-dev \
libssl1.0-dev \
luarocks \
git \
gcc \
patch \
&& apt-dpkg-wrap apt-get install -t stretch-backports -y \
lua-ldap \
lua-sec \
&& luarocks install cyrussasl 1.1.0-1 \
&& luarocks install lua-cjson 2.1.0-1 \
&& luarocks install luajwtjitsi 1.3-7 \
&& luarocks install net-url 0.9-1 \
&& apt-dpkg-wrap apt-get remove --purge -y \
git \
gcc \
luarocks \
libsasl2-dev \
libssl1.0-dev \
liblua5.2-dev \
&& apt-dpkg-wrap apt-get autoremove --purge -y \
&& apt-cleanup \
&& rm -rf /etc/prosody
RUN \
apt-dpkg-wrap apt-get update \
&& apt-dpkg-wrap apt-get -d install -y jitsi-meet-prosody \
&& dpkg -x /var/cache/apt/archives/jitsi-meet-prosody*.deb /tmp/pkg \
&& mv /tmp/pkg/usr/share/jitsi-meet/prosody-plugins /prosody-plugins \
&& apt-cleanup \
&& rm -rf /tmp/pkg /var/cache/apt
RUN patch -d /usr/lib/prosody/modules/muc -p0 < /prosody-plugins/muc_owner_allow_kick.patch
COPY rootfs/ /
EXPOSE 5222 5269 5347 5280
VOLUME ["/config", "/prosody-plugins-custom"]