forked from Deuxfleurs/infrastructure
37 lines
1.2 KiB
Docker
37 lines
1.2 KiB
Docker
FROM debian:buster as builder
|
|
|
|
ARG MEET_VERSION
|
|
WORKDIR /tmp
|
|
RUN apt-get update && \
|
|
apt-get install -y wget unzip && \
|
|
wget https://github.com/jitsi/jitsi-meet/archive/stable/jitsi-meet_${MEET_VERSION}.zip -O meet.zip && \
|
|
unzip meet.zip && \
|
|
mv jitsi-meet-* jitsi-meet
|
|
|
|
FROM debian:buster
|
|
|
|
ARG PROSODY_VERSION
|
|
RUN apt-get update && \
|
|
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 && \
|
|
apt-get install -y prosody=${PROSODY_VERSION} lua-event
|
|
|
|
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 && \
|
|
mkdir -p /var/lib/prosody && \
|
|
chown -R prosody:prosody /var/lib/prosody /run/prosody
|
|
|
|
COPY --from=builder /tmp/jitsi-meet/resources/prosody-plugins /usr/share/jitsi-meet/prosody-plugins/
|
|
COPY xmpp_prosody /usr/local/bin/xmpp_prosody
|
|
|
|
WORKDIR /var/lib/prosody
|
|
USER prosody
|
|
CMD ["/usr/local/bin/xmpp_prosody"]
|