Dockerfile 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  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 \
  10. prosody \
  11. libssl1.0.2 \
  12. sasl2-bin \
  13. libsasl2-modules-ldap \
  14. lua-basexx \
  15. liblua5.2-dev \
  16. libsasl2-dev \
  17. libssl1.0-dev \
  18. luarocks \
  19. git \
  20. gcc \
  21. patch \
  22. && apt-dpkg-wrap apt-get install -t stretch-backports -y \
  23. lua-ldap \
  24. lua-sec \
  25. && luarocks install cyrussasl 1.1.0-1 \
  26. && luarocks install lua-cjson 2.1.0-1 \
  27. && luarocks install luajwtjitsi 1.3-7 \
  28. && luarocks install net-url 0.9-1 \
  29. && apt-dpkg-wrap apt-get remove --purge -y \
  30. git \
  31. gcc \
  32. luarocks \
  33. libsasl2-dev \
  34. libssl1.0-dev \
  35. liblua5.2-dev \
  36. && apt-dpkg-wrap apt-get autoremove --purge -y \
  37. && apt-cleanup \
  38. && rm -rf /etc/prosody
  39. RUN \
  40. apt-dpkg-wrap apt-get update \
  41. && apt-dpkg-wrap apt-get -d install -y jitsi-meet-prosody \
  42. && dpkg -x /var/cache/apt/archives/jitsi-meet-prosody*.deb /tmp/pkg \
  43. && mv /tmp/pkg/usr/share/jitsi-meet/prosody-plugins /prosody-plugins \
  44. && apt-cleanup \
  45. && rm -rf /tmp/pkg /var/cache/apt
  46. RUN patch -d /usr/lib/prosody/modules/muc -p0 < /prosody-plugins/muc_owner_allow_kick.patch
  47. COPY rootfs/ /
  48. EXPOSE 5222 5269 5347 5280
  49. VOLUME ["/config", "/prosody-plugins-custom"]