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