-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
74 lines (62 loc) · 2.71 KB
/
Dockerfile
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
FROM ubuntu:focal AS base
ARG DEBIAN_FRONTEND=noninteractive
RUN rm -rf /var/lib/apt/lists/* && apt-get update && apt-get upgrade --assume-yes
RUN apt-get install --assume-yes gnupg wget gettext-base
RUN echo "deb http://deb.kamailio.org/kamailio56 focal main" > /etc/apt/sources.list.d/kamailio.list
RUN wget -O- http://deb.kamailio.org/kamailiodebkey.gpg | apt-key add -
FROM base
LABEL maintainer="Matteo Brancaleoni <[email protected]>"
ARG DEBIAN_FRONTEND=noninteractive
VOLUME /etc/kamailio
RUN apt-get update && apt-get install --assume-yes \
kamailio=5.6.1+ubuntu20.04 \
kamailio-autheph-modules=5.6.1+ubuntu20.04 \
kamailio-berkeley-bin=5.6.1+ubuntu20.04 \
kamailio-berkeley-modules=5.6.1+ubuntu20.04 \
kamailio-cnxcc-modules=5.6.1+ubuntu20.04 \
kamailio-cpl-modules=5.6.1+ubuntu20.04 \
kamailio-dbg=5.6.1+ubuntu20.04 \
kamailio-erlang-modules=5.6.1+ubuntu20.04 \
kamailio-extra-modules=5.6.1+ubuntu20.04 \
kamailio-geoip-modules=5.6.1+ubuntu20.04 \
kamailio-geoip2-modules=5.6.1+ubuntu20.04 \
kamailio-ims-modules=5.6.1+ubuntu20.04 \
kamailio-json-modules=5.6.1+ubuntu20.04 \
kamailio-kazoo-modules=5.6.1+ubuntu20.04 \
kamailio-ldap-modules=5.6.1+ubuntu20.04 \
kamailio-lua-modules=5.6.1+ubuntu20.04 \
kamailio-lwsc-modules=5.6.1+ubuntu20.04 \
kamailio-memcached-modules=5.6.1+ubuntu20.04 \
kamailio-mongodb-modules=5.6.1+ubuntu20.04 \
kamailio-mono-modules=5.6.1+ubuntu20.04 \
kamailio-mqtt-modules=5.6.1+ubuntu20.04 \
kamailio-mysql-modules=5.6.1+ubuntu20.04 \
kamailio-nth=5.6.1+ubuntu20.04 \
kamailio-outbound-modules=5.6.1+ubuntu20.04 \
kamailio-perl-modules=5.6.1+ubuntu20.04 \
kamailio-phonenum-modules=5.6.1+ubuntu20.04 \
kamailio-postgres-modules=5.6.1+ubuntu20.04 \
kamailio-presence-modules=5.6.1+ubuntu20.04 \
kamailio-python-modules=5.6.1+ubuntu20.04 \
kamailio-python3-modules=5.6.1+ubuntu20.04 \
kamailio-rabbitmq-modules=5.6.1+ubuntu20.04 \
kamailio-radius-modules=5.6.1+ubuntu20.04 \
kamailio-redis-modules=5.6.1+ubuntu20.04 \
kamailio-ruby-modules=5.6.1+ubuntu20.04 \
kamailio-sctp-modules=5.6.1+ubuntu20.04 \
kamailio-snmpstats-modules=5.6.1+ubuntu20.04 \
kamailio-sqlite-modules=5.6.1+ubuntu20.04 \
kamailio-systemd-modules=5.6.1+ubuntu20.04 \
kamailio-tls-modules=5.6.1+ubuntu20.04 \
kamailio-unixodbc-modules=5.6.1+ubuntu20.04 \
kamailio-utils-modules=5.6.1+ubuntu20.04 \
kamailio-websocket-modules=5.6.1+ubuntu20.04 \
kamailio-xml-modules=5.6.1+ubuntu20.04 \
kamailio-xmpp-modules=5.6.1+ubuntu20.04
# clean
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
COPY ./docker-entrypoint.sh /
ENV SHM_MEMORY=64
ENV PKG_MEMORY=8
ENTRYPOINT [ "/docker-entrypoint.sh" ]
CMD ["kamailio", "-DD", "-E", "-f", "/tmp/kamailio/kamailio.cfg"]