prosody-docker/Dockerfile
Morgan McMillian 9292416cc2
Some checks failed
thrrgilag/prosody-docker/pipeline/head This commit looks good
git.dreamfall.space/prosody-docker/pipeline/head There was a failure building this commit
disable sasl2 as it doesn't seem to work yet
2024-04-21 15:37:49 -07:00

34 lines
1.1 KiB
Docker

FROM debian:bookworm-slim
RUN apt-get update && \
apt-get install ca-certificates extrepo -y && \
extrepo enable prosody && \
apt-get update && \
apt-get install prosody prosody-modules lua5.4 liblua5.4-dev lua-luaossl -y
RUN mkdir -p /run/prosody/ && \
chown -R prosody:prosody /run/prosody/
RUN mkdir -p /etc/prosody/conf.d/
RUN update-alternatives --set lua-interpreter /usr/bin/lua5.4
COPY prosody.cfg.lua /etc/prosody/prosody.cfg.lua
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
EXPOSE 5222
EXPOSE 5269
EXPOSE 5280
EXPOSE 5281
EXPOSE 5347
CMD ["prosody", "-F"]
USER prosody