Dockerfile 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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.4 \
  8. liblua5.4-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 3.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. ARG VERSION_MATRIX_USER_VERIFICATION_SERVICE_PLUGIN="1.7.0"
  28. RUN wget -qO /etc/apt/trusted.gpg.d/prosody.gpg https://prosody.im/files/prosody-debian-packages.key && \
  29. echo "deb http://packages.prosody.im/debian bullseye main" > /etc/apt/sources.list.d/prosody.list && \
  30. apt-dpkg-wrap apt-get update && \
  31. apt-dpkg-wrap apt-get install -y \
  32. lua5.4 \
  33. prosody-0.12 \
  34. libssl1.1 \
  35. libldap-common \
  36. sasl2-bin \
  37. libsasl2-modules-ldap \
  38. lua-basexx \
  39. lua-ldap \
  40. lua-sec \
  41. lua-unbound && \
  42. apt-dpkg-wrap apt-get -d install -y jitsi-meet-prosody && \
  43. dpkg -x /var/cache/apt/archives/jitsi-meet-prosody*.deb /tmp/pkg && \
  44. mv /tmp/pkg/usr/share/jitsi-meet/prosody-plugins /prosody-plugins && \
  45. apt-cleanup && \
  46. rm -rf /tmp/pkg /var/cache/apt && \
  47. rm -rf /etc/prosody && \
  48. wget https://github.com/matrix-org/prosody-mod-auth-matrix-user-verification/archive/refs/tags/v$VERSION_MATRIX_USER_VERIFICATION_SERVICE_PLUGIN.tar.gz && \
  49. tar -xf v$VERSION_MATRIX_USER_VERIFICATION_SERVICE_PLUGIN.tar.gz && \
  50. mv prosody-mod-auth-matrix-user-verification-$VERSION_MATRIX_USER_VERIFICATION_SERVICE_PLUGIN/mod_auth_matrix_user_verification.lua /prosody-plugins && \
  51. mv prosody-mod-auth-matrix-user-verification-$VERSION_MATRIX_USER_VERIFICATION_SERVICE_PLUGIN/mod_matrix_power_sync.lua /prosody-plugins && \
  52. rm -rf prosody-mod-auth-matrix-user-verification-$VERSION_MATRIX_USER_VERIFICATION_SERVICE_PLUGIN v$VERSION_MATRIX_USER_VERIFICATION_SERVICE_PLUGIN.tar.gz
  53. COPY rootfs/ /
  54. COPY --from=builder /usr/local/lib/lua /usr/local/lib/lua
  55. COPY --from=builder /usr/local/share/lua /usr/local/share/lua
  56. EXPOSE 5222 5347 5280
  57. VOLUME ["/config", "/prosody-plugins-custom"]