Skip to content

Instantly share code, notes, and snippets.

@dnut
Created April 16, 2018 01:17
Show Gist options
  • Save dnut/16e49241b1047c122101bb4b26acab89 to your computer and use it in GitHub Desktop.
Save dnut/16e49241b1047c122101bb4b26acab89 to your computer and use it in GitHub Desktop.
################################################################################
# Build a dockerfile for Prosody XMPP server
# Based on debian
################################################################################
FROM debian:stretch
RUN apt-get update
RUN apt-get install -y gnupg curl
RUN echo deb http://packages.prosody.im/debian stretch main | tee -a /etc/apt/sources.list
RUN curl https://prosody.im/files/prosody-debian-packages.key | apt-key add -
RUN apt-get update
RUN apt-get install -y prosody-0.10 lua-dbi-postgresql vim less
RUN mkdir /var/run/prosody && chown prosody:prosody /var/run/prosody
EXPOSE 80 443 5222 5269 5347 5280 5281
USER prosody
ENV __FLUSH_LOG yes
CMD service prosody start && prosodyctl start; bash
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment