Initial commit

This commit is contained in:
Oliver Hattshire 2025-10-20 09:09:50 -03:00
commit 936153fa99
8 changed files with 220 additions and 0 deletions

31
images/prosody/Dockerfile Normal file
View file

@ -0,0 +1,31 @@
FROM debian:bookworm-slim
ENV LANG=C.UTF-8
RUN useradd -u 10000 prosody -d /var/lib/prosody -M
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
lua5.4 liblua5.4-dev prosody prosody-modules anacron idn2 lua-unbound luarocks ca-certificates \
&& prosodyctl install --server=https://modules.prosody.im/rocks/ mod_privilege \
&& rm -f /etc/cron.daily/apt-compat /etc/cron.daily/dpkg /etc/cron.daily/passwd \
&& apt-get autoremove -y \
&& rm -rf /var/lib/apt/lists/* \
&& rm -rf /var/cache/*
# See https://prosody.im/doc/ports
# File Transfer Proxy (mod_proxy65) !NotConfigured
#EXPOSE 5000/tcp
# Client connections
EXPOSE 5222/tcp
# s2s Connections
EXPOSE 5269/tcp
# HTTPS (http_files for no-upload support)
EXPOSE 5281/tcp
# External components !DoNotPublish
EXPOSE 5347/tcp
COPY --chmod=555 refresh-certs.cron /etc/cron.daily/refresh-certs
COPY --chmod=555 entrypoint.sh /entrypoint.sh
COPY --chmod=555 config/ /config/
ENTRYPOINT "/entrypoint.sh"