FROM openjdk:8-jre-slim
|
MAINTAINER Jacek Kowalski <Jacek@jacekk.info>
|
|
ENV OPENFIRE_VERSION 4.1.5
|
|
RUN apt-get -y update \
|
&& apt-get -y install wget sudo \
|
&& apt-get -y clean \
|
&& rm -Rf /var/lib/apt/lists/*
|
|
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
|