2
0

Dockerfile 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. ARG JITSI_REPO=jitsi
  2. ARG BASE_TAG=latest
  3. FROM ${JITSI_REPO}/base:${BASE_TAG} as builder
  4. RUN 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. libssl-dev \
  10. luarocks \
  11. git \
  12. gcc && \
  13. luarocks install cyrussasl 1.1.0-1 && \
  14. luarocks install net-url 0.9-1 && \
  15. luarocks install luajwtjitsi 2.0-0
  16. FROM ${JITSI_REPO}/base:${BASE_TAG}
  17. ENV XMPP_CROSS_DOMAIN="false"
  18. RUN wget -qO /etc/apt/trusted.gpg.d/prosody.gpg https://prosody.im/files/prosody-debian-packages.key && \
  19. echo "deb http://packages.prosody.im/debian bullseye main" > /etc/apt/sources.list.d/prosody.list && \
  20. apt-dpkg-wrap apt-get update && \
  21. apt-dpkg-wrap apt-get install -y \
  22. prosody \
  23. libssl1.1 \
  24. libldap-common \
  25. sasl2-bin \
  26. libsasl2-modules-ldap \
  27. lua-basexx \
  28. lua-ldap \
  29. lua-sec \
  30. patch && \
  31. apt-cleanup && \
  32. rm -rf /etc/prosody && \
  33. apt-dpkg-wrap apt-get update && \
  34. apt-dpkg-wrap apt-get -d install -y jitsi-meet-prosody && \
  35. dpkg -x /var/cache/apt/archives/jitsi-meet-prosody*.deb /tmp/pkg && \
  36. mv /tmp/pkg/usr/share/jitsi-meet/prosody-plugins /prosody-plugins && \
  37. apt-cleanup && \
  38. rm -rf /tmp/pkg /var/cache/apt && \
  39. patch -d /usr/lib/prosody/modules/muc -p0 < /prosody-plugins/muc_owner_allow_kick.patch
  40. COPY rootfs/ /
  41. COPY --from=builder /usr/local/lib/lua /usr/local/lib/lua
  42. COPY --from=builder /usr/local/share/lua /usr/local/share/lua
  43. EXPOSE 5222 5347 5280
  44. VOLUME ["/config", "/prosody-plugins-custom"]