mirror of
https://github.com/deuill/coreos-home-server.git
synced 2024-09-21 13:40:45 +00:00
Alex Palaistras
3254ead3a7
This commit represents a large amount of work toward moving services to a more standard approach to storing data, and a simplification in how networks are managed.
26 lines
950 B
Docker
26 lines
950 B
Docker
FROM docker.io/debian:stable-slim
|
|
ARG VERSION=0.11.9
|
|
|
|
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"]
|