Dockerfile 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. ARG JITSI_REPO=jitsi
  2. FROM ${JITSI_REPO}/base as builder
  3. RUN \
  4. apt-dpkg-wrap apt-get update \
  5. && apt-dpkg-wrap apt-get install -y \
  6. lua5.2 \
  7. liblua5.2-dev \
  8. libsasl2-dev \
  9. libssl-dev \
  10. luarocks \
  11. git \
  12. gcc \
  13. && luarocks install cyrussasl 1.1.0-1 \
  14. && luarocks install net-url 0.9-1 \
  15. && luarocks install luajwtjitsi 2.0-0
  16. FROM ${JITSI_REPO}/base
  17. ENV XMPP_CROSS_DOMAIN="false"
  18. RUN \
  19. wget -q https://prosody.im/files/prosody-debian-packages.key -O - | gpg --enarmor > /etc/apt/trusted.gpg.d/prosody.asc \
  20. && echo "deb http://packages.prosody.im/debian buster main" > /etc/apt/sources.list.d/prosody.list \
  21. && apt-dpkg-wrap apt-get update \
  22. && apt-dpkg-wrap apt-get install -y \
  23. prosody \
  24. libssl1.1 \
  25. sasl2-bin \
  26. libsasl2-modules-ldap \
  27. lua-basexx \
  28. lua-ldap \
  29. lua-sec \
  30. patch \
  31. && apt-cleanup \
  32. && rm -rf /etc/prosody
  33. RUN \
  34. apt-dpkg-wrap apt-get update \
  35. && apt-dpkg-wrap apt-get -d install -y jitsi-meet-prosody \
  36. && dpkg -x /var/cache/apt/archives/jitsi-meet-prosody*.deb /tmp/pkg \
  37. && mv /tmp/pkg/usr/share/jitsi-meet/prosody-plugins /prosody-plugins \
  38. && apt-cleanup \
  39. && rm -rf /tmp/pkg /var/cache/apt
  40. RUN patch -d /usr/lib/prosody/modules/muc -p0 < /prosody-plugins/muc_owner_allow_kick.patch
  41. COPY rootfs/ /
  42. COPY --from=builder /usr/local/lib/lua /usr/local/lib/lua
  43. COPY --from=builder /usr/local/share/lua /usr/local/share/lua
  44. EXPOSE 5222 5347 5280
  45. VOLUME ["/config", "/prosody-plugins-custom"]