Created
April 16, 2018 01:17
-
-
Save dnut/16e49241b1047c122101bb4b26acab89 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
################################################################################ | |
# 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