prosody-docker/Dockerfile

35 lines
1.1 KiB
Text
Raw Normal View History

FROM debian:bookworm-slim
2023-05-06 07:40:57 -07:00
RUN apt-get update && \
apt-get install ca-certificates extrepo -y && \
2023-05-06 07:40:57 -07:00
extrepo enable prosody && \
apt-get update && \
2024-04-16 17:51:22 -07:00
apt-get install prosody prosody-modules lua5.4 liblua5.4-dev lua-luaossl -y
2023-05-06 07:40:57 -07:00
RUN mkdir -p /run/prosody/ && \
chown -R prosody:prosody /run/prosody/
RUN mkdir -p /etc/prosody/conf.d/
2024-04-16 17:51:22 -07:00
RUN update-alternatives --set lua-interpreter /usr/bin/lua5.4
2023-05-06 07:40:57 -07:00
COPY prosody.cfg.lua /etc/prosody/prosody.cfg.lua
2024-04-16 18:34:24 -07:00
RUN mkdir -p /usr/local/prosody/custom_plugins/lib/luarocks/rocks-5.4
RUN chown -R prosody:prosody /usr/local/prosody
RUN prosodyctl install --server=https://modules.prosody.im/rocks/ mod_cloud_notify_extensions
#RUN prosodyctl install --server=https://modules.prosody.im/rocks/ mod_sasl2
#RUN prosodyctl install --server=https://modules.prosody.im/rocks/ mod_sasl2_bind2
#RUN prosodyctl install --server=https://modules.prosody.im/rocks/ mod_sasl2_sm
#RUN prosodyctl install --server=https://modules.prosody.im/rocks/ mod_sasl2_fast
2024-04-16 18:34:24 -07:00
2023-05-06 07:40:57 -07:00
EXPOSE 5222
EXPOSE 5269
2023-05-07 15:06:12 -07:00
EXPOSE 5280
EXPOSE 5281
2023-05-15 21:57:16 -07:00
EXPOSE 5347
2023-05-06 07:40:57 -07:00
CMD ["prosody", "-F"]
USER prosody