Dockerfile 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. FROM jitsi/base
  2. ADD https://raw.githubusercontent.com/jitsi/jitsi-meet/fc129d9849ca5e26245d54df6451931b6c179987/resources/prosody-plugins/token/util.lib.lua /prosody-plugins/token/util.lib.lua
  3. ADD https://raw.githubusercontent.com/jitsi/jitsi-meet/fc129d9849ca5e26245d54df6451931b6c179987/resources/prosody-plugins/mod_token_verification.lua /prosody-plugins/mod_token_verification.lua
  4. ADD https://raw.githubusercontent.com/jitsi/jitsi-meet/fc129d9849ca5e26245d54df6451931b6c179987/resources/prosody-plugins/mod_auth_token.lua /prosody-plugins/mod_auth_token.lua
  5. RUN sed -i s/hook/hook_global/g /prosody-plugins/mod_auth_token.lua
  6. RUN \
  7. apt-dpkg-wrap apt-get update \
  8. && apt-dpkg-wrap apt-get install -t stretch-backports -y \
  9. prosody \
  10. liblua5.2-dev \
  11. sasl2-bin \
  12. libsasl2-modules-ldap \
  13. libsasl2-dev \
  14. libssl1.0-dev \
  15. lua-basexx \
  16. lua-ldap \
  17. luarocks \
  18. git \
  19. gcc \
  20. && luarocks install cyrussasl 1.1.0-1 \
  21. && luarocks install lua-cjson 2.1.0-1 \
  22. && luarocks install luajwtjitsi 1.3-7 \
  23. && apt-dpkg-wrap apt-get remove -t stretch-backports -y \
  24. git \
  25. gcc \
  26. luarocks \
  27. libsasl2-dev \
  28. libssl1.0-dev \
  29. liblua5.2-dev \
  30. && apt-cleanup \
  31. && rm -rf /etc/prosody
  32. COPY rootfs/ /
  33. EXPOSE 5222 5269 5347 5280
  34. VOLUME ["/config", "/prosody-plugins-custom"]