-
Notifications
You must be signed in to change notification settings - Fork 9
/
Dockerfile
71 lines (65 loc) · 1.78 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
FROM debian:bullseye
LABEL maintainer="Nadezhda Ryabtsova <nadezhdaryabtsova@gmail.com>"
LABEL description="Provides an image with Janus Gateway"
RUN echo deb http://deb.debian.org/debian stable main contrib non-free >> /etc/apt/sources.list && \
apt-get update && \
apt-get install -y --no-install-recommends \
git \
build-essential \
autoconf \
automake \
autotools-dev \
dh-make \
debhelper \
devscripts \
fakeroot \
xutils \
lintian \
pbuilder \
libconfig-dev \
libmicrohttpd-dev \
libjansson-dev \
libnice-dev \
libssl-dev \
libsrtp2-dev \
libsofia-sip-ua-dev \
libglib2.0-dev \
libopus-dev \
libogg-dev \
pkg-config \
gengetopt \
libtool \
automake \
cmake \
libmicrohttpd-dev \
libjansson-dev \
libcurl4-openssl-dev \
libglib2.0-dev \
libssl-dev \
libopus-dev \
libavutil-dev \
libavcodec-dev \
libavformat-dev \
libwebsockets-dev \
liblua5.3-dev && \
rm -rf /var/lib/apt/lists/*
RUN mkdir -p /usr/src/libsrtp && \
cd /usr/src/libsrtp && \
wget https://github.com/cisco/libsrtp/archive/v2.3.0.tar.gz && \
tar xfv v2.3.0.tar.gz && \
cd libsrtp-2.3.0 && \
./configure --prefix=/usr --enable-openssl && \
make shared_library && \
make install && \
rm -rf /usr/src/libsrtp
RUN mkdir -p /usr/src/janus /var/janus/janus/log /var/janus/janus/data && \
cd /usr/src/janus && \
wget -c https://github.com/meetecho/janus-gateway/archive/v0.13.3.tar.gz && \
tar -xzf v0.13.3.tar.gz && \
cd janus-gateway-0.13.3 && \
sh autogen.sh && \
./configure --prefix=/var/janus/janus --enable-post-processing --disable-rabbitmq --disable-data-channels --disable-aes-gcm && \
make && make install && make configs && \
rm -rf /usr/src/janus
EXPOSE 8088/tcp 8188/tcp 8188/udp
CMD ["/var/janus/janus/bin/janus", "--nat-1-1=${DOCKER_IP}"]