2018-02-10 13:49:46 +00:00
|
|
|
FROM alpine
|
|
|
|
|
|
|
|
LABEL maintainer Knut Ahlers <knut@ahlers.me>
|
|
|
|
|
2020-03-10 09:34:23 +00:00
|
|
|
ENV OPENFIRE_VERSION=4_5_1
|
2018-02-10 13:49:46 +00:00
|
|
|
|
|
|
|
RUN set -ex \
|
2020-01-10 16:39:50 +00:00
|
|
|
&& apk --no-cache add \
|
|
|
|
bash \
|
|
|
|
ca-certificates \
|
|
|
|
curl \
|
|
|
|
openjdk11 \
|
2019-02-08 23:18:43 +00:00
|
|
|
&& mkdir -p /opt \
|
2018-02-10 13:49:46 +00:00
|
|
|
&& curl -sSfL "https://www.igniterealtime.org/downloadServlet?filename=openfire/openfire_${OPENFIRE_VERSION}.tar.gz" | \
|
|
|
|
tar -xz -C /opt \
|
|
|
|
&& curl -sSfLo /usr/local/bin/dumb-init https://github.com/Yelp/dumb-init/releases/download/v1.2.1/dumb-init_1.2.1_amd64 \
|
|
|
|
&& chmod +x /usr/local/bin/dumb-init
|
|
|
|
|
|
|
|
ADD start.sh /usr/local/bin/start.sh
|
|
|
|
|
|
|
|
EXPOSE 9090 9091 5222 5223 5269
|
|
|
|
VOLUME ["/data"]
|
|
|
|
|
|
|
|
ENTRYPOINT ["/usr/local/bin/start.sh"]
|
|
|
|
|