-
Notifications
You must be signed in to change notification settings - Fork 29
/
Dockerfile.member
41 lines (33 loc) · 1.24 KB
/
Dockerfile.member
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
FROM ubuntu:oracular
VOLUME ["/member", "/var/lib/mongooseim"]
EXPOSE 4369 5222 5269 5280 9100
# Allow an easy access to mongooseim and mongooseimctl commands
ENV PATH="${PATH}:/usr/lib/mongooseim/bin"
RUN apt-get update && apt-get install -y \
libssl3 \
iproute2 \
netcat-openbsd \
inetutils-ping \
telnet \
unixodbc \
tdsodbc \
odbc-postgresql && \
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
ARG BUILD_DATE
ARG VCS_REF
ARG VCS_REF_DESC
ARG VERSION
ARG TARGETARCH
LABEL org.label-schema.name='MongooseIM' \
org.label-schema.description='MongooseIM is a mobile messaging platform with focus on performance and scalability' \
org.label-schema.url='https://www.erlang-solutions.com/products/mongooseim.html' \
org.label-schema.vcs-url='https://github.com/esl/MongooseIM' \
org.label-schema.vendor='Erlang Solutions' \
org.label-schema.schema-version='1.0' \
org.label-schema.build-date=$BUILD_DATE \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.vcs-ref-desc=$VCS_REF_DESC \
org.label-schema.version=$VERSION
COPY ./member/start.sh /start.sh
ADD ./member/mongooseim-$TARGETARCH.tar.gz /usr/lib/
CMD ["/start.sh"]