19 lines
443 B
Docker
19 lines
443 B
Docker
FROM debian:buster
|
|
|
|
ARG VERSION
|
|
|
|
RUN apt-get update && \
|
|
apt-get install -y prosody=${VERSION}
|
|
|
|
mkdir -p /usr/local/share/ca-certificates/
|
|
ln -sf \
|
|
/var/lib/prosody/auth.jitsi.crt \
|
|
/usr/local/share/ca-certificates/auth.jitsi.crt
|
|
|
|
COPY xmpp_gen /usr/local/bin/xmpp_gen
|
|
COPY xmpp_run /usr/local/bin/xmpp_run
|
|
|
|
USER prosody
|
|
RUN mkdir /run/prosody && touch /run/prosody/prosody.pid
|
|
WORKDIR /var/lib/prosody
|
|
CMD ["/usr/local/bin/xmpp_run"]
|