Commit 2a32e66d authored by webpigeon's avatar webpigeon

initial commit

parents
#######################################################
# Build a dockerfile for Prosody XMPP server #
# based off the ubuntu package for setting up prosody #
#######################################################
FROM ubuntu:18.04 as builder
RUN apt-get update && apt-get install -y libc6\
libidn11-dev \
liblua5.1-dev \
libssl-dev \
lua5.1 \
lua5.1-expat \
lua5.1-socket \
wget
RUN mkdir prosody-build
WORKDIR prosody-build
RUN wget https://prosody.im/downloads/source/prosody-0.10.2.tar.gz
RUN tar xzf prosody-0.10.2.tar.gz
WORKDIR prosody-0.10.2
RUN ./configure
RUN make
RUN make install
###############################################
# Run a container that will start the service #
###############################################
FROM ubuntu:18.04
# MAINTAINER Joseph Walton-Rivers <joseph@webpigeon.me.uk>
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update -qq; \
apt-get install -y -qq --no-install-suggests --no-install-recommends \
lsb-base \
adduser \
libidn11 \
libssl1.0.0 \
lsb-base \
lua-expat \
lua-filesystem \
lua5.1 \
lua5.1-bitop \
lua5.1-expat \
lua5.1-filesystem \
lua5.1-sec \
lua5.1-socket \
lua5.1-event \
lua-zlib \
ssl-cert \
wget \
&& rm -rf /var/lib/apt/lists/*
ADD config.lua /etc/prosody/prosody.cfg.lua
COPY --from=builder /usr/local /usr/local/
RUN useradd -rs /bin/false prosody
EXPOSE 80 443 5222 5269 5347 5280 5281
VOLUMES ["/var/log/prosody", "/prosody/data/"]
USER prosody:prosody
CMD ["/usr/local/bin/prosody"]
#! /bin/bash
docker build . -t fossgalaxy/xmpp
---------- Server-wide settings --------------
--
--
daemonize = false
modules_enabled = {
"roster";
"saslauth";
"tls";
"dialback";
"disco";
"carbons";
"pep";
"private";
"blocklist";
"vcard";
"version";
"uptime";
"time";
"ping";
"register";
"mam";
"admin_adhoc"
}
log = {
{ to = "console" };
}
VirtualHost "example.org"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment