coreos-home-server/config/service/prosody/Containerfile
Alex Palaistras 4309b3d093 Consolidate use of apt-get update in containers
We no longer perform `apt-get upgrade`, and make indentation consistent
between different Containerfile definitions.
2021-03-21 00:16:51 +00:00

26 lines
950 B
Docker

FROM docker.io/debian:stable-slim
ARG VERSION=0.11.8
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 stable main" > /etc/apt/sources.list.d/prosody.list && \
echo "deb-src https://packages.prosody.im/debian stable 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"]