aboutsummaryrefslogtreecommitdiff
path: root/cluster/prod/app/jitsi/build/jitsi-xmpp/Dockerfile
blob: 40cd3355aae2b42be78e1c7e1a2a0080e946ee8b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM debian:bookworm as builder

RUN apt-get update && \
    apt-get install -y git unzip

ARG MEET_TAG
RUN git clone --depth 1 --branch ${MEET_TAG} https://github.com/jitsi/jitsi-meet/

FROM debian:bookworm

ARG PROSODY_VERSION
RUN apt-get update && \
    apt-get install -y wget gnupg2 extrepo && \
    extrepo enable prosody && \
    apt-get update && \
    apt-cache show prosody && \
    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 /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"]