Dockerfile 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. libssl1.0-dev \
  10. luarocks \
  11. git \
  12. gcc \
  13. && luarocks install cyrussasl 1.1.0-1 \
  14. && luarocks install lua-cjson 2.1.0-1 \
  15. && luarocks install luajwtjitsi 1.3-7 \
  16. && luarocks install net-url 0.9-1
  17. FROM ${JITSI_REPO}/base
  18. ADD https://prosody.im/files/prosody-debian-packages.key /tmp/prosody.key
  19. RUN \
  20. apt-key add /tmp/prosody.key \
  21. && rm -f /tmp/prosody.key \
  22. && echo "deb http://packages.prosody.im/debian stretch main" > /etc/apt/sources.list.d/prosody.list \
  23. && apt-dpkg-wrap apt-get update \
  24. && apt-dpkg-wrap apt-get install -y \
  25. prosody \
  26. libssl1.0.2 \
  27. sasl2-bin \
  28. libsasl2-modules-ldap \
  29. lua-basexx \
  30. patch \
  31. && apt-dpkg-wrap apt-get install -t stretch-backports -y \
  32. lua-ldap \
  33. lua-sec \
  34. && apt-cleanup \
  35. && rm -rf /etc/prosody
  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 patch -d /usr/lib/prosody/modules/muc -p0 < /prosody-plugins/muc_owner_allow_kick.patch
  44. COPY rootfs/ /
  45. COPY --from=builder /usr/local/lib/lua /usr/local/lib/lua
  46. COPY --from=builder /usr/local/share/lua /usr/local/share/lua
  47. EXPOSE 5222 5347 5280
  48. VOLUME ["/config", "/prosody-plugins-custom"]