2020-03-22 14:32:10 +01:00
|
|
|
FROM debian:buster
|
|
|
|
|
2020-12-23 15:55:17 +01:00
|
|
|
ARG VERSION
|
|
|
|
|
2020-03-22 14:32:10 +01:00
|
|
|
RUN apt-get update && \
|
2020-12-23 15:55:17 +01:00
|
|
|
apt-get install -y prosody=${VERSION}
|
2020-03-22 14:32:10 +01:00
|
|
|
|
2021-01-28 18:55:56 +01:00
|
|
|
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
|
2021-01-28 17:52:41 +01:00
|
|
|
|
2021-01-28 18:55:56 +01:00
|
|
|
COPY xmpp_root /usr/local/bin/xmpp_root
|
|
|
|
COPY xmpp_prosody /usr/local/bin/xmpp_prosody
|
2020-03-22 18:01:54 +01:00
|
|
|
|
2021-01-28 17:52:41 +01:00
|
|
|
WORKDIR /var/lib/prosody
|
2021-01-28 18:55:56 +01:00
|
|
|
CMD ["/usr/local/bin/xmpp_root"]
|