-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
45 lines (40 loc) · 1.3 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
FROM debian:testing
# inspired from the official prosody image https://github.com/prosody/prosody-docker/blob/master/Dockerfile
MAINTAINER Andreas Linz <klingt.net@gmail.com>
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y curl
RUN echo "deb http://packages.prosody.im/debian stable main" >> /etc/apt/sources.list
RUN curl -Ls "https://prosody.im/files/prosody-debian-packages.key" | apt-key add -
RUN apt-key update &&\
apt-get install -y\
curl \
openssl \
lua5.1 \
libidn11 \
libssl1.0.0 \
lua-dbi-sqlite3 \
lua-event \
lua-expat \
lua-filesystem \
lua-sec \
lua-socket \
lua-zlib \
prosody &&\
rm -rf /var/lib/apt/lists/*
RUN sed -i 's/^daemonize = true/daemonize = false/g' /etc/prosody/prosody.cfg.lua &&\
sed -i 's/^log = {/log = { { to = "console" };/g' /etc/prosody/prosody.cfg.lua &&\
mkdir -p /var/run/prosody &&\
chown -R prosody:prosody /etc/prosody /var/log/prosody /var/lib/prosody /var/run/prosody
EXPOSE 80\
443
# XMPP client2server, server2server
EXPOSE 5222\
5269
# XMPP BOSH websocket (HTTP/HTTPS)
EXPOSE 5280\
5281
# XMPP external components
EXPOSE 5347
VOLUME /etc/prosody \
/var/log/prosody \
/var/lib/prosody