Dockerfile 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. ARG JITSI_REPO=jitsi
  2. FROM ${JITSI_REPO}/base
  3. ADD https://prosody.im/files/prosody-debian-packages.key /tmp/prosody.key
  4. RUN \
  5. apt-key add /tmp/prosody.key \
  6. && rm -f /tmp/prosody.key \
  7. && echo "deb http://packages.prosody.im/debian stretch main" > /etc/apt/sources.list.d/prosody.list \
  8. && apt-dpkg-wrap apt-get update \
  9. && apt-dpkg-wrap apt-get install -y prosody \
  10. && apt-dpkg-wrap apt-get install -t stretch-backports -y \
  11. liblua5.2-dev \
  12. sasl2-bin \
  13. libsasl2-modules-ldap \
  14. libsasl2-dev \
  15. libssl1.0-dev \
  16. lua-basexx \
  17. lua-ldap \
  18. lua-sec \
  19. luarocks \
  20. git \
  21. gcc \
  22. patch \
  23. && luarocks install cyrussasl 1.1.0-1 \
  24. && luarocks install lua-cjson 2.1.0-1 \
  25. && luarocks install luajwtjitsi 1.3-7 \
  26. && luarocks install net-url 0.9-1 \
  27. && apt-dpkg-wrap apt-get remove -t stretch-backports -y \
  28. git \
  29. gcc \
  30. luarocks \
  31. libsasl2-dev \
  32. libssl1.0-dev \
  33. liblua5.2-dev \
  34. && apt-cleanup \
  35. && rm -rf /etc/prosody /var/cache/apt
  36. RUN \
  37. apt-dpkg-wrap apt-get update \
  38. && apt-dpkg-wrap apt-get -d install -y jitsi-meet-prosody \
  39. && dpkg -x /var/cache/apt/archives/jitsi-meet-prosody*.deb /tmp/pkg \
  40. && mv /tmp/pkg/usr/share/jitsi-meet/prosody-plugins /prosody-plugins \
  41. && apt-cleanup \
  42. && rm -rf /tmp/pkg /var/cache/apt
  43. RUN \
  44. sed -i s/hook/hook_global/g /prosody-plugins/mod_auth_token.lua \
  45. && patch -d /usr/lib/prosody/modules/muc -p0 < /prosody-plugins/muc_owner_allow_kick.patch
  46. COPY rootfs/ /
  47. EXPOSE 5222 5269 5347 5280
  48. VOLUME ["/config", "/prosody-plugins-custom"]