Dockerfile 1.6 KB

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