summaryrefslogtreecommitdiff
path: root/Containerfile
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2025-11-08 23:28:40 +0100
committerPatrick Spek <p.spek@tyil.nl>2025-11-08 23:28:40 +0100
commitbc185fe6fd04fd33c7f93327003c0758f4c6bead (patch)
tree488c82f83df1469df775a85ba61294cafc4e454a /Containerfile
downloadprosody-bc185fe6fd04fd33c7f93327003c0758f4c6bead.tar.gz
prosody-bc185fe6fd04fd33c7f93327003c0758f4c6bead.tar.bz2
Initial release
Diffstat (limited to 'Containerfile')
-rw-r--r--Containerfile19
1 files changed, 19 insertions, 0 deletions
diff --git a/Containerfile b/Containerfile
new file mode 100644
index 0000000..4cd297b
--- /dev/null
+++ b/Containerfile
@@ -0,0 +1,19 @@
+FROM debian:12-slim
+
+ENV __FLUSH_LOG=yes
+
+RUN apt-get update \
+ && yes | apt-get install --no-install-recommends extrepo tini \
+ && extrepo enable prosody \
+ && apt-get update \
+ && yes | apt-get install --no-install-recommends prosody-13.0 lua5.4 lua-unbound lua-sec lua-readline lua-dbi-postgresql luarocks lua5.4-dev \
+ && update-alternatives --set lua-interpreter /usr/bin/lua5.4 \
+ && rm -fr /var/lib/apt/lists/*
+
+RUN mkdir -p /etc/prosody/conf.d /var/run/prosody
+RUN chown prosody:prosody /etc/prosody/conf.d /var/run/prosody
+
+COPY entrypoint.sh /entrypoint.sh
+COPY prosody.cfg.lua /etc/prosody/prosody.cfg.lua
+
+CMD [ "/usr/bin/tini", "--", "/entrypoint.sh" ]