Dockerfile 1.1 KB

123456789101112131415161718192021222324252627
  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 -y lua5.2 liblua5.2-dev libssl1.0-dev lua-basexx luarocks gcc git && \
  9. apt-dpkg-wrap apt-get install -t stretch-backports -y prosody && \
  10. rm -rf /etc/prosody
  11. RUN \
  12. luarocks install lua-cjson 2.1.0-1 && \
  13. luarocks install luajwtjitsi
  14. RUN \
  15. apt-dpkg-wrap apt-get remove -y liblua5.2-dev libssl1.0-dev gcc git && \
  16. apt-cleanup
  17. COPY rootfs/ /
  18. EXPOSE 5222 5269 5347 5280
  19. VOLUME ["/config", "/prosody-plugins-custom"]