1 FROM bitnami/minideb:latest
5 # Install prerequisites
6 RUN install_packages make build-essential zlib1g-dev libldap2-dev libssl-dev gettext libical-dev libexpat1-dev curl libcurl4-openssl-dev git autoconf automake netbase supervisor
8 # Download and build libsieve
9 RUN sh -c '( curl http://easyinstall.citadel.org/libsieve-2.2.7-ctdl2.tar.gz | tar xvzf - ) && cd libsieve-2.2.7/src && ./configure --prefix=/usr && make && make install'
11 # Download and build Citadel
12 WORKDIR /tmp/ctdl_build
13 RUN sh -c 'git clone git://git.citadel.org/appl/gitroot/citadel.git'
14 RUN sh -c 'cd /tmp/ctdl_build/citadel/libcitadel && ./bootstrap && ./configure --prefix=/usr && make && make install'
15 RUN sh -c 'cd /tmp/ctdl_build/citadel/citadel && ./bootstrap && ./configure && make && make install'
16 RUN sh -c 'cd /tmp/ctdl_build/citadel/webcit && ./bootstrap && ./configure && make && make install'
17 RUN sh -c 'cd /tmp/ctdl_build/citadel/textclient && ./bootstrap && ./configure --prefix=/usr && make && make install'
18 RUN sh -c 'cd / && rm vfr /tmp/ctdl_build'
21 ADD supervisor.conf /etc/
22 ADD citadel-docker-startup.sh /usr/local/bin/
40 CMD /usr/local/bin/citadel-docker-startup.sh