Dockerfile 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. RUN \
  18. wget -q https://prosody.im/files/prosody-debian-packages.key -O - | gpg --enarmor > /etc/apt/trusted.gpg.d/prosody.asc \
  19. && echo "deb http://packages.prosody.im/debian buster main" > /etc/apt/sources.list.d/prosody.list \
  20. && apt-dpkg-wrap apt-get update \
  21. && apt-dpkg-wrap apt-get install -y \
  22. prosody \
  23. libssl1.1 \
  24. sasl2-bin \
  25. libsasl2-modules-ldap \
  26. lua-basexx \
  27. lua-ldap \
  28. lua-sec \
  29. patch \
  30. && apt-cleanup \
  31. && rm -rf /etc/prosody
  32. RUN \
  33. apt-dpkg-wrap apt-get update \
  34. && apt-dpkg-wrap apt-get -d install -y jitsi-meet-prosody \
  35. && dpkg -x /var/cache/apt/archives/jitsi-meet-prosody*.deb /tmp/pkg \
  36. && mv /tmp/pkg/usr/share/jitsi-meet/prosody-plugins /prosody-plugins \
  37. && apt-cleanup \
  38. && rm -rf /tmp/pkg /var/cache/apt
  39. RUN patch -d /usr/lib/prosody/modules/muc -p0 < /prosody-plugins/muc_owner_allow_kick.patch
  40. COPY rootfs/ /
  41. COPY --from=builder /usr/local/lib/lua /usr/local/lib/lua
  42. COPY --from=builder /usr/local/share/lua /usr/local/share/lua
  43. EXPOSE 5222 5347 5280
  44. VOLUME ["/config", "/prosody-plugins-custom"]