2021-01-28 20:05:10 +00:00
|
|
|
FROM debian:buster as builder
|
|
|
|
|
|
|
|
WORKDIR /tmp
|
2021-01-28 22:02:37 +00:00
|
|
|
ARG MEET_VERSION
|
|
|
|
ARG PREFIXV
|
2021-01-28 20:05:10 +00:00
|
|
|
RUN apt-get update && \
|
2021-01-28 22:02:37 +00:00
|
|
|
apt-get install -y wget unzip
|
|
|
|
RUN wget https://github.com/jitsi/jitsi-meet/archive/${PREFIXV}${MEET_VERSION}.zip -O meet.zip
|
|
|
|
RUN unzip meet.zip && \
|
2021-01-28 20:05:10 +00:00
|
|
|
mv jitsi-meet-* jitsi-meet
|
2020-03-22 13:32:10 +00:00
|
|
|
|
2021-01-28 20:05:10 +00:00
|
|
|
FROM debian:buster
|
2020-12-23 14:55:17 +00:00
|
|
|
|
2021-01-28 20:05:10 +00:00
|
|
|
ARG PROSODY_VERSION
|
2020-03-22 13:32:10 +00:00
|
|
|
RUN apt-get update && \
|
2021-01-28 18:28:15 +00:00
|
|
|
apt-get install -y wget gnupg2 && \
|
|
|
|
echo deb http://packages.prosody.im/debian buster main \
|
|
|
|
| tee -a /etc/apt/sources.list && \
|
|
|
|
wget https://prosody.im/files/prosody-debian-packages.key -O - \
|
|
|
|
| apt-key add - && \
|
|
|
|
apt-get update && \
|
2021-01-28 20:05:10 +00:00
|
|
|
apt-get install -y prosody=${PROSODY_VERSION} lua-event
|
2020-03-22 13:32:10 +00:00
|
|
|
|
2021-01-28 17:55:56 +00:00
|
|
|
RUN mkdir -p /usr/local/share/ca-certificates/ && \
|
|
|
|
ln -sf \
|
|
|
|
/var/lib/prosody/certs/auth.jitsi.crt \
|
|
|
|
/usr/local/share/ca-certificates/auth.jitsi.crt && \
|
|
|
|
mkdir /run/prosody && \
|
|
|
|
touch /run/prosody/prosody.pid && \
|
2021-01-28 18:28:15 +00:00
|
|
|
mkdir -p /var/lib/prosody && \
|
|
|
|
chown -R prosody:prosody /var/lib/prosody /run/prosody
|
2021-01-28 16:52:41 +00:00
|
|
|
|
2021-01-28 20:05:10 +00:00
|
|
|
COPY --from=builder /tmp/jitsi-meet/resources/prosody-plugins /usr/share/jitsi-meet/prosody-plugins/
|
2021-01-28 17:55:56 +00:00
|
|
|
COPY xmpp_prosody /usr/local/bin/xmpp_prosody
|
2020-03-22 17:01:54 +00:00
|
|
|
|
2021-01-28 16:52:41 +00:00
|
|
|
WORKDIR /var/lib/prosody
|
2021-01-28 18:28:15 +00:00
|
|
|
USER prosody
|
|
|
|
CMD ["/usr/local/bin/xmpp_prosody"]
|