Files
prosody/Dockerfile

34 lines
858 B
Docker
Raw Permalink Normal View History

2026-02-02 20:12:50 +03:00
FROM debian:bookworm-slim
# Install Prosody and dependencies
RUN apt-get update --fix-missing && \
apt-get install -y --no-install-recommends \
prosody \
2026-04-29 21:53:14 +03:00
prosody-modules \
2026-02-02 20:12:50 +03:00
lua-dbi-mysql \
lua-sec \
2026-02-04 11:46:18 +03:00
lua-unbound \
2026-02-02 20:12:50 +03:00
openssl \
ca-certificates \
2026-02-02 20:12:50 +03:00
netcat-traditional \
&& rm -rf /var/lib/apt/lists/*
# Create prosody user and set up directories
RUN mkdir -p /var/lib/prosody /var/log/prosody /var/run/prosody /etc/prosody/certs && \
chown -R prosody:prosody /var/lib/prosody /var/log/prosody /var/run/prosody /etc/prosody
# Copy entrypoint script
COPY entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
# Expose Prosody ports
# 5222: Client to Server (C2S)
# 5269: Server to Server (S2S)
# 5280: HTTP
# 5281: HTTPS
EXPOSE 5222 5269 5280 5281
# Set entrypoint
ENTRYPOINT ["/entrypoint.sh"]
CMD ["prosody", "-F"]