coreos-home-server/config/service/prosody/Containerfile

26 lines
957 B
Plaintext
Raw Normal View History

FROM docker.io/debian:bullseye-slim
ARG VERSION=0.11.10
RUN apt-get update -y && apt-get install -y --no-install-recommends \
curl mercurial gnupg ca-certificates apt-transport-https
RUN echo "deb https://packages.prosody.im/debian bullseye main" > /etc/apt/sources.list.d/prosody.list && \
echo "deb-src https://packages.prosody.im/debian bullseye main" >> /etc/apt/sources.list.d/prosody.list && \
curl -o - https://prosody.im/files/prosody-debian-packages.key | apt-key add - && \
apt-get update -y && apt-get install -y --no-install-recommends \
lua-dbi-mysql lua-event lua-zlib lua-sec lua-bitop prosody=${VERSION}*
RUN mkdir -p /usr/lib/prosody/community-modules && \
hg clone https://hg.prosody.im/prosody-modules /usr/lib/prosody/community-modules
COPY container/config /etc/prosody
RUN prosodyctl check config
VOLUME /var/lib/prosody
ENV __FLUSH_LOG yes
USER prosody
EXPOSE 5222 5269 5280 5347
ENTRYPOINT ["prosody"]