FROM debian:buster ARG VERSION RUN apt-get update && \ apt-get install -y prosody=${VERSION} 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 COPY xmpp_root /usr/local/bin/xmpp_root COPY xmpp_prosody /usr/local/bin/xmpp_prosody WORKDIR /var/lib/prosody CMD ["/usr/local/bin/xmpp_root"]