-
Notifications
You must be signed in to change notification settings - Fork 58
/
Dockerfile
80 lines (67 loc) · 1.83 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
75
76
77
78
79
80
FROM debian:jessie
LABEL maintainer="Linagora Folks <lgs-openpaas-dev@linagora.com>"
LABEL description="Provides an image with Janus Gateway"
RUN apt-get update -y \
&& apt-get upgrade -y
RUN apt-get install -y \
build-essential \
libmicrohttpd-dev \
libjansson-dev \
libnice-dev \
libssl-dev \
libsofia-sip-ua-dev \
libglib2.0-dev \
libopus-dev \
libogg-dev \
libini-config-dev \
libcollection-dev \
pkg-config \
gengetopt \
libtool \
autotools-dev \
automake
RUN apt-get install -y \
sudo \
make \
git \
doxygen \
graphviz \
cmake
RUN cd ~ \
&& git clone https://github.com/cisco/libsrtp.git \
&& cd libsrtp \
&& git checkout v2.0.0 \
&& ./configure --prefix=/usr --enable-openssl \
&& make shared_library \
&& sudo make install
RUN cd ~ \
&& git clone https://github.com/sctplab/usrsctp \
&& cd usrsctp \
&& ./bootstrap \
&& ./configure --prefix=/usr \
&& make \
&& sudo make install
RUN cd ~ \
&& git clone https://github.com/warmcat/libwebsockets.git \
&& cd libwebsockets \
&& git checkout v2.1.0 \
&& mkdir build \
&& cd build \
&& cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr .. \
&& make \
&& sudo make install
RUN cd ~ \
&& git clone https://github.com/meetecho/janus-gateway.git \
&& cd janus-gateway \
&& sh autogen.sh \
&& ./configure --prefix=/opt/janus --disable-rabbitmq --disable-mqtt --enable-docs \
&& make CFLAGS='-std=c99' \
&& make install \
&& make configs
RUN cp -rp ~/janus-gateway/certs /opt/janus/share/janus
COPY conf/*.cfg /opt/janus/etc/janus/
RUN apt-get install nginx -y
COPY nginx/nginx.conf /etc/nginx/nginx.conf
EXPOSE 80 7088 8088 8188 8089
EXPOSE 10000-10200/udp
CMD service nginx restart && /opt/janus/bin/janus --nat-1-1=${DOCKER_IP}