Dockerfile 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  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. build-essential \
  7. lua5.2 \
  8. liblua5.2-dev \
  9. libsasl2-dev \
  10. libssl-dev \
  11. libreadline-dev \
  12. git \
  13. unzip \
  14. wget && \
  15. mkdir /tmp/luarocks && \
  16. wget -qO - https://luarocks.github.io/luarocks/releases/luarocks-3.8.0.tar.gz | tar xfz - --strip-components 1 -C /tmp/luarocks && \
  17. cd /tmp/luarocks && ./configure && make && make install && cd - && \
  18. luarocks install cyrussasl 1.1.0-1 && \
  19. luarocks install net-url 0.9-1 && \
  20. luarocks install luajwtjitsi 2.0-0
  21. FROM ${JITSI_REPO}/base:${BASE_TAG}
  22. LABEL org.opencontainers.image.title="Prosody IM"
  23. LABEL org.opencontainers.image.description="XMPP server used for signalling."
  24. LABEL org.opencontainers.image.url="https://prosody.im/"
  25. LABEL org.opencontainers.image.source="https://github.com/jitsi/docker-jitsi-meet"
  26. LABEL org.opencontainers.image.documentation="https://jitsi.github.io/handbook/"
  27. ENV XMPP_CROSS_DOMAIN="false"
  28. ARG VERSION_MATRIX_USER_VERIFICATION_SERVICE_PLUGIN="1.7.0"
  29. RUN wget -qO /etc/apt/trusted.gpg.d/prosody.gpg https://prosody.im/files/prosody-debian-packages.key && \
  30. echo "deb http://packages.prosody.im/debian bullseye main" > /etc/apt/sources.list.d/prosody.list && \
  31. apt-dpkg-wrap apt-get update && \
  32. apt-dpkg-wrap apt-get install -y \
  33. prosody=0.11.13-1~bpo11+1 \
  34. libssl1.1 \
  35. libldap-common \
  36. sasl2-bin \
  37. libsasl2-modules-ldap \
  38. lua-basexx \
  39. lua-ldap \
  40. lua-sec \
  41. patch && \
  42. apt-cleanup && \
  43. rm -rf /etc/prosody && \
  44. apt-dpkg-wrap apt-get update && \
  45. apt-dpkg-wrap apt-get -d install -y jitsi-meet-prosody && \
  46. dpkg -x /var/cache/apt/archives/jitsi-meet-prosody*.deb /tmp/pkg && \
  47. mv /tmp/pkg/usr/share/jitsi-meet/prosody-plugins /prosody-plugins && \
  48. apt-cleanup && \
  49. rm -rf /tmp/pkg /var/cache/apt && \
  50. patch -d /usr/lib/prosody/modules/muc -p0 < /prosody-plugins/muc_owner_allow_kick.patch && \
  51. wget https://github.com/matrix-org/prosody-mod-auth-matrix-user-verification/archive/refs/tags/v$VERSION_MATRIX_USER_VERIFICATION_SERVICE_PLUGIN.tar.gz && \
  52. tar -xf v$VERSION_MATRIX_USER_VERIFICATION_SERVICE_PLUGIN.tar.gz && \
  53. mv prosody-mod-auth-matrix-user-verification-$VERSION_MATRIX_USER_VERIFICATION_SERVICE_PLUGIN/mod_auth_matrix_user_verification.lua /prosody-plugins && \
  54. mv prosody-mod-auth-matrix-user-verification-$VERSION_MATRIX_USER_VERIFICATION_SERVICE_PLUGIN/mod_matrix_power_sync.lua /prosody-plugins && \
  55. rm -rf prosody-mod-auth-matrix-user-verification-$VERSION_MATRIX_USER_VERIFICATION_SERVICE_PLUGIN v$VERSION_MATRIX_USER_VERIFICATION_SERVICE_PLUGIN.tar.gz
  56. COPY rootfs/ /
  57. COPY --from=builder /usr/local/lib/lua /usr/local/lib/lua
  58. COPY --from=builder /usr/local/share/lua /usr/local/share/lua
  59. EXPOSE 5222 5347 5280
  60. VOLUME ["/config", "/prosody-plugins-custom"]