aboutsummaryrefslogblamecommitdiff
path: root/app/jitsi/build/jitsi-xmpp/Dockerfile
blob: 6357cc6e96db3a082c1747a60a5f099f55b220aa (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12

                  

           
                       






                                                                    
 





                                                          

                                                          
 
                                             
 
                        

                                   
FROM debian:buster

ARG 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=${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 xmpp_prosody /usr/local/bin/xmpp_prosody

WORKDIR /var/lib/prosody
USER prosody
CMD ["/usr/local/bin/xmpp_prosody"]