FROM debian
|
MAINTAINER Jacek Kowalski <Jacek@jacekk.info>
|
|
ENV OPENFIRE_VERSION 4.0.4
|
|
RUN apt-get -y update \
|
&& apt-get -y install openjdk-8-jre-headless wget sudo \
|
&& apt-get -y clean
|
|
RUN cd /tmp \
|
&& wget -O openfire.deb "https://www.igniterealtime.org/downloadServlet?filename=openfire/openfire_${OPENFIRE_VERSION}_all.deb" \
|
&& dpkg -i openfire.deb \
|
&& sed -i 's/exit/return/' /etc/init.d/openfire \
|
&& cp -Rp /etc/openfire /etc/openfire-bak \
|
&& rm openfire.deb
|
|
VOLUME /etc/openfire
|
VOLUME /var/lib/openfire/embedded-db
|
EXPOSE 5222 5223 5269 9090 9091
|
|
ADD run.sh /
|
CMD /run.sh
|