diff options
Diffstat (limited to 'Containerfile')
| -rw-r--r-- | Containerfile | 19 |
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" ] |
