commit | author | age
|
2e8290
|
1 |
FROM debian |
JK |
2 |
MAINTAINER Jacek Kowalski <Jacek@jacekk.info> |
|
3 |
|
|
4 |
ENV OPENFIRE_VERSION 4.0.0 |
|
5 |
|
|
6 |
RUN apt-get -y update \ |
|
7 |
&& apt-get -y install openjdk-7-jre-headless wget sudo \ |
|
8 |
&& apt-get -y clean |
|
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 |