This repository was archived by the owner on Jun 23, 2026. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
57 lines (45 loc) · 2.45 KB
/
Copy pathDockerfile
File metadata and controls
57 lines (45 loc) · 2.45 KB
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
46
47
48
49
50
51
52
53
54
55
56
FROM debian:bookworm-slim
MAINTAINER Artem Arakcheev <artarakcheev@gmail.com>
ARG PROSODY_PACKAGE=prosody-0.12
ARG LUA_PACKAGE=lua5.4
ARG BUILD_ID=
ARG ARCH=amd64
# Install dependencies
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
extrepo tini \
&& extrepo enable prosody \
&& apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
${PROSODY_PACKAGE} \
${LUA_PACKAGE} \
lua-unbound \
lua-sec \
lua-readline \
lua-dbi-sqlite3 \
lua-dbi-postgresql \
lua-dbi-mysql \
luarocks \
lib${LUA_PACKAGE}-dev \
&& update-alternatives --set lua-interpreter /usr/bin/${LUA_PACKAGE} \
&& rm -rf /var/lib/apt/lists/*
RUN mkdir -p /etc/prosody/conf.d /var/run/prosody \
&& chown prosody:prosody /etc/prosody/conf.d /var/run/prosody
COPY ./entrypoint.sh /entrypoint.sh
RUN chmod 755 /entrypoint.sh
ENTRYPOINT ["/usr/bin/tini", "--", "/entrypoint.sh"]
RUN prosodyctl install --server=https://modules.prosody.im/rocks/ mod_conversejs
# RUN prosodyctl install --server=https://modules.prosody.im/rocks/ mod_auth_any
# RUN prosodyctl install --server=https://modules.prosody.im/rocks/ mod_smacks
# RUN mkdir -p /etc/prosody/certs/ && openssl req -x509 -newkey rsa:4096 -keyout /etc/prosody/certs/selfdev-prosody.dev.local.key -out /etc/prosody/certs/selfdev-prosody.dev.local.crt -days 9999 -nodes -subj "/CN=selfdev-prosody.dev.local" && chown prosody:prosody /etc/prosody/certs/selfdev-prosody.dev.local.key /etc/prosody/certs/selfdev-prosody.dev.local.crt
# RUN mkdir -p /etc/prosody/certs/ && openssl req -x509 -newkey rsa:4096 -keyout /etc/prosody/certs/conference.selfdev-prosody.dev.local.key -out /etc/prosody/certs/conference.selfdev-prosody.dev.local.crt -days 9999 -nodes -subj "/CN=conference.selfdev-prosody.dev.local" && chown prosody:prosody /etc/prosody/certs/conference.selfdev-prosody.dev.local.key /etc/prosody/certs/conference.selfdev-prosody.dev.local.crt
COPY prosody.cfg.lua /etc/prosody/
# RUN prosodyctl register art selfdev-prosody.dev.local 123
# RUN echo ARCH=${ARCH}
RUN wget -O shell2http.tar.gz https://github.com/msoap/shell2http/releases/download/v1.17.0/shell2http_1.17.0_linux_${ARCH}.tar.gz && \
tar -xf shell2http.tar.gz -C /usr/local/bin/ && \
rm shell2http.tar.gz
COPY commander.sh .
EXPOSE 80 443 5222 5269 5347 5280 5281
ENV __FLUSH_LOG yes
CMD ["prosody", "-F"]