prosody-docker/Dockerfile

29 lines
884 B
Text
Raw Normal View History

2014-11-13 10:42:44 +00:00
################################################################################
# Build a dockerfile for Prosody XMPP server
# Based on ubuntu
################################################################################
FROM ubuntu:14.04
MAINTAINER Lloyd Watkin <lloyd@evilprofessor.co.uk>
RUN mkdir /data
WORKDIR /data
RUN apt-get update
RUN apt-get upgrade -y
2014-11-13 20:32:00 +00:00
RUN apt-get install -y openssl lua5.1 lua-expat lua-socket lua-filesystem \
libidn11 lua-event lua-zlib lua-dbi-mysql lua-dbi-postgresql \
2014-11-14 13:36:35 +00:00
lua-dbi-sqlite3 libssl1.0.0 lua-sec lua-zlib liblua5.1-expat0
2014-11-13 10:42:44 +00:00
2014-11-13 20:32:41 +00:00
COPY ./prosody.deb /data/prosody.deb
2014-11-13 15:21:28 +00:00
RUN dpkg -i /data/prosody.deb
2014-11-13 10:42:44 +00:00
2014-11-14 13:36:44 +00:00
# If using default configuration keep a process alive
RUN echo 'daemonize = false;' | cat - /etc/prosody/prosody.cfg.lua > temp && mv temp /etc/prosody/prosody.cfg.lua
2014-11-14 14:26:12 +00:00
EXPOSE 443 80 5222 5269 5347 5280 5281
2014-11-13 10:42:44 +00:00
2014-11-14 14:26:12 +00:00
ENTRYPOINT prosodyctl start