aboutsummaryrefslogtreecommitdiff
path: root/app/jitsi/build/jitsi-xmpp/Dockerfile
diff options
context:
space:
mode:
authorQuentin Dufour <quentin@deuxfleurs.fr>2021-01-28 17:52:41 +0100
committerQuentin Dufour <quentin@deuxfleurs.fr>2021-01-28 17:52:41 +0100
commit7b57ff72a918ca295e2b00e76da33eec700c6a2a (patch)
tree6f19d8c5260cadc3535ee3343f662d4217719c23 /app/jitsi/build/jitsi-xmpp/Dockerfile
parentebb772e5ba26944ac002c236d33ef164e91c6a7d (diff)
downloadinfrastructure-7b57ff72a918ca295e2b00e76da33eec700c6a2a.tar.gz
infrastructure-7b57ff72a918ca295e2b00e76da33eec700c6a2a.zip
Simplify prosody too
Diffstat (limited to 'app/jitsi/build/jitsi-xmpp/Dockerfile')
-rw-r--r--app/jitsi/build/jitsi-xmpp/Dockerfile10
1 files changed, 8 insertions, 2 deletions
diff --git a/app/jitsi/build/jitsi-xmpp/Dockerfile b/app/jitsi/build/jitsi-xmpp/Dockerfile
index f3dcd36..a682984 100644
--- a/app/jitsi/build/jitsi-xmpp/Dockerfile
+++ b/app/jitsi/build/jitsi-xmpp/Dockerfile
@@ -5,9 +5,15 @@ ARG VERSION
RUN apt-get update && \
apt-get install -y prosody=${VERSION}
-COPY external_components.cfg.lua /etc/prosody/conf.d/external_components.cfg.lua
-COPY xmpp_conf /usr/local/bin/xmpp_conf
+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"]