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