commit | author | age
|
3f62bc
|
1 |
FROM debian:jessie |
2e8290
|
2 |
MAINTAINER Jacek Kowalski <Jacek@jacekk.info> |
JK |
3 |
|
a81f3f
|
4 |
ENV OPENFIRE_VERSION 4.1.5 |
2e8290
|
5 |
|
4cd1b8
|
6 |
RUN echo 'deb http://httpredir.debian.org/debian jessie-backports main' > \ |
JK |
7 |
/etc/apt/sources.list.d/jessie-backports.list \ |
|
8 |
&& apt-get -y update \ |
|
9 |
&& apt-get -y -t jessie-backports install openjdk-8-jre-headless wget sudo \ |
2e8290
|
10 |
&& apt-get -y clean |
JK |
11 |
|
|
12 |
RUN cd /tmp \ |
|
13 |
&& wget -O openfire.deb "https://www.igniterealtime.org/downloadServlet?filename=openfire/openfire_${OPENFIRE_VERSION}_all.deb" \ |
|
14 |
&& dpkg -i openfire.deb \ |
|
15 |
&& sed -i 's/exit/return/' /etc/init.d/openfire \ |
|
16 |
&& cp -Rp /etc/openfire /etc/openfire-bak \ |
|
17 |
&& rm openfire.deb |
|
18 |
|
|
19 |
VOLUME /etc/openfire |
|
20 |
VOLUME /var/lib/openfire/embedded-db |
|
21 |
EXPOSE 5222 5223 5269 9090 9091 |
|
22 |
|
|
23 |
ADD run.sh / |
|
24 |
CMD /run.sh |