Dockerfile 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. && apt-dpkg-wrap apt-get remove -t stretch-backports -y \
  21. git \
  22. gcc \
  23. luarocks \
  24. libsasl2-dev \
  25. libssl1.0-dev \
  26. liblua5.2-dev \
  27. && apt-cleanup \
  28. && rm -rf /etc/prosody /var/cache/apt
  29. RUN \
  30. apt-dpkg-wrap apt-get update \
  31. && apt-dpkg-wrap apt-get -d install -y jitsi-meet-tokens \
  32. && dpkg -x /var/cache/apt/archives/jitsi-meet-tokens*.deb /tmp \
  33. && mv /tmp/usr/share/jitsi-meet/prosody-plugins /prosody-plugins \
  34. && apt-cleanup \
  35. && rm -rf /tmp/usr /var/cache/apt
  36. RUN \
  37. sed -i s/hook/hook_global/g /prosody-plugins/mod_auth_token.lua \
  38. && patch -d /usr/lib/prosody/modules/muc -p0 < /prosody-plugins/muc_owner_allow_kick.patch
  39. COPY rootfs/ /
  40. EXPOSE 5222 5269 5347 5280
  41. VOLUME ["/config", "/prosody-plugins-custom"]