prosody: refactor getting prosody-plugins.

Now we get all files from the deb package jitsi-meet-tokens into /prosody-plugins
pull/133/head
netaskd 5 years ago committed by Saúl Ibarra Corretgé
parent e48bf46f7c
commit dd851117a8
  1. 19
      prosody/Dockerfile

@ -1,11 +1,5 @@
FROM jitsi/base FROM jitsi/base
ADD https://raw.githubusercontent.com/jitsi/jitsi-meet/fc129d9849ca5e26245d54df6451931b6c179987/resources/prosody-plugins/token/util.lib.lua /prosody-plugins/token/util.lib.lua
ADD https://raw.githubusercontent.com/jitsi/jitsi-meet/fc129d9849ca5e26245d54df6451931b6c179987/resources/prosody-plugins/mod_token_verification.lua /prosody-plugins/mod_token_verification.lua
ADD https://raw.githubusercontent.com/jitsi/jitsi-meet/fc129d9849ca5e26245d54df6451931b6c179987/resources/prosody-plugins/mod_auth_token.lua /prosody-plugins/mod_auth_token.lua
RUN sed -i s/hook/hook_global/g /prosody-plugins/mod_auth_token.lua
RUN \ RUN \
apt-dpkg-wrap apt-get update \ apt-dpkg-wrap apt-get update \
&& apt-dpkg-wrap apt-get install -t stretch-backports -y \ && apt-dpkg-wrap apt-get install -t stretch-backports -y \
@ -31,7 +25,18 @@ RUN \
libssl1.0-dev \ libssl1.0-dev \
liblua5.2-dev \ liblua5.2-dev \
&& apt-cleanup \ && apt-cleanup \
&& rm -rf /etc/prosody && rm -rf /etc/prosody /var/cache/apt
RUN \
apt-dpkg-wrap apt-get update \
&& apt-dpkg-wrap apt-get -d install -y jitsi-meet-tokens \
&& dpkg -x /var/cache/apt/archives/jitsi-meet-tokens*.deb /tmp \
&& mv /tmp/usr/share/jitsi-meet/prosody-plugins /prosody-plugins \
&& apt-cleanup \
&& rm -rf /tmp/usr /var/cache/apt
RUN \
sed -i s/hook/hook_global/g /prosody-plugins/mod_auth_token.lua
COPY rootfs/ / COPY rootfs/ /

Loading…
Cancel
Save