This repository has been archived by the owner on Jun 2, 2021. It is now read-only.
forked from ladamalina/janus-gateway
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
71 lines (61 loc) · 1.61 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:stretch
LABEL maintainer="Nadezhda Ryabtsova <[email protected]>"
LABEL description="Provides an image with Janus Gateway"
RUN apt-get update
RUN apt-get install -y \
git \
build-essential \
autoconf \
automake \
autotools-dev \
dh-make \
debhelper \
devscripts \
fakeroot \
xutils \
lintian \
pbuilder
RUN apt-get install -y \
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 \
libwebsockets-dev \
libavutil-dev \
libavcodec-dev \
libavformat-dev \
liblua5.3-dev
RUN echo deb http://deb.debian.org/debian testing main >> /etc/apt/sources.list && \
apt-get update && \
apt-cache policy libmicrohttpd-dev libnice-dev libssl-dev libopus-dev
RUN apt-get install -y \
libmicrohttpd-dev=0.9.59-1 \
libjansson-dev=2.11-1 \
libcurl4-openssl-dev=7.61.0-1 \
libglib2.0-dev=2.56.1-2 \
libsrtp2-dev=2.2.0-1 \
libssl-dev=1.1.0h-4 \
libopus-dev=1.3~beta+20180518-1
RUN rm -rf /var/lib/apt/lists/*
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.4.3.tar.gz && \
tar -xzf v0.4.3.tar.gz && \
cd janus-gateway-0.4.3 && \
sh autogen.sh && \
./configure --prefix=/var/janus/janus --enable-post-processing --disable-rabbitmq --disable-data-channels && \
make && make install && make configs && \
rm -rf /usr/src/janus
EXPOSE 8088/tcp 8188/tcp
EXPOSE 8188/udp 20000-40000/udp
CMD /var/janus/janus/bin/janus --nat-1-1=${DOCKER_IP}