Dockerfile 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. FROM jitsi/base
  2. RUN \
  3. apt-dpkg-wrap apt-get update \
  4. && apt-dpkg-wrap apt-get install -t stretch-backports -y \
  5. prosody \
  6. liblua5.2-dev \
  7. sasl2-bin \
  8. libsasl2-modules-ldap \
  9. libsasl2-dev \
  10. libssl1.0-dev \
  11. lua-basexx \
  12. lua-ldap \
  13. luarocks \
  14. git \
  15. gcc \
  16. patch \
  17. && luarocks install cyrussasl 1.1.0-1 \
  18. && luarocks install lua-cjson 2.1.0-1 \
  19. && luarocks install luajwtjitsi 1.3-7 \
  20. && luarocks install net-url 0.9-1 \
  21. && apt-dpkg-wrap apt-get remove -t stretch-backports -y \
  22. git \
  23. gcc \
  24. luarocks \
  25. libsasl2-dev \
  26. libssl1.0-dev \
  27. liblua5.2-dev \
  28. && apt-cleanup \
  29. && rm -rf /etc/prosody /var/cache/apt
  30. RUN \
  31. apt-dpkg-wrap apt-get update \
  32. && apt-dpkg-wrap apt-get -d install -y jitsi-meet-tokens \
  33. && dpkg -x /var/cache/apt/archives/jitsi-meet-tokens*.deb /tmp \
  34. && mv /tmp/usr/share/jitsi-meet/prosody-plugins /prosody-plugins \
  35. && apt-cleanup \
  36. && rm -rf /tmp/usr /var/cache/apt
  37. RUN \
  38. sed -i s/hook/hook_global/g /prosody-plugins/mod_auth_token.lua \
  39. && patch -d /usr/lib/prosody/modules/muc -p0 < /prosody-plugins/muc_owner_allow_kick.patch
  40. COPY rootfs/ /
  41. EXPOSE 5222 5269 5347 5280
  42. VOLUME ["/config", "/prosody-plugins-custom"]