forked from canyanio/janus-gateway-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
125 lines (109 loc) · 2.82 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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
FROM debian:bullseye-slim
ARG GIT_BRANCH="master"
RUN apt-get -y update && \
apt-get install -y \
libavutil-dev \
libavformat-dev \
libavcodec-dev \
libmicrohttpd-dev \
libjansson-dev \
libssl-dev \
libsofia-sip-ua-dev \
libglib2.0-dev \
libopus-dev \
libogg-dev \
libcurl4-openssl-dev \
liblua5.3-dev \
libconfig-dev \
libusrsctp-dev \
libwebsockets-dev \
libnanomsg-dev \
librabbitmq-dev \
pkg-config \
gengetopt \
libtool \
automake \
build-essential \
wget \
git \
gtk-doc-tools && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
RUN cd /tmp && \
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
RUN cd /tmp && \
git clone https://gitlab.freedesktop.org/libnice/libnice && \
cd libnice && \
git checkout 0.1.17 && \
./autogen.sh && \
./configure --prefix=/usr && \
make && \
make install
RUN cd /tmp && \
git clone https://github.com/meetecho/janus-gateway.git --branch ${GIT_BRANCH} && \
cd janus-gateway && \
sh autogen.sh && \
./configure --enable-post-processing --prefix=/usr/local && \
make && \
make install && \
make configs
FROM debian:bullseye-slim
ARG BUILD_DATE="undefined"
ARG GIT_BRANCH="undefined"
ARG GIT_COMMIT="undefined"
ARG VERSION="undefined"
LABEL build_date=${BUILD_DATE}
LABEL git_branch=${GIT_BRANCH}
LABEL git_commit=${GIT_COMMIT}
LABEL version=${VERSION}
RUN apt-get -y update && \
apt-get install -y \
libmicrohttpd12 \
libavutil-dev \
libavformat-dev \
libavcodec-dev \
libjansson4 \
libssl1.1 \
libsofia-sip-ua0 \
libglib2.0-0 \
libopus0 \
libogg0 \
libcurl4 \
liblua5.3-0 \
libconfig9 \
libusrsctp1 \
libwebsockets16 \
libnanomsg5 \
librabbitmq4 && \
apt-get clean && \
rm -rf /var/lib/apt/lists/*
COPY --from=0 /usr/lib/libsrtp2.so.1 /usr/lib/libsrtp2.so.1
RUN ln -s /usr/lib/libsrtp2.so.1 /usr/lib/libsrtp2.so
COPY --from=0 /usr/lib/libnice.la /usr/lib/libnice.la
COPY --from=0 /usr/lib/libnice.so.10.10.0 /usr/lib/libnice.so.10.10.0
RUN ln -s /usr/lib/libnice.so.10.10.0 /usr/lib/libnice.so.10
RUN ln -s /usr/lib/libnice.so.10.10.0 /usr/lib/libnice.so
COPY --from=0 /usr/local/bin/janus /usr/local/bin/janus
COPY --from=0 /usr/local/bin/janus-pp-rec /usr/local/bin/janus-pp-rec
COPY --from=0 /usr/local/bin/janus-cfgconv /usr/local/bin/janus-cfgconv
COPY --from=0 /usr/local/etc/janus /usr/local/etc/janus
COPY --from=0 /usr/local/lib/janus /usr/local/lib/janus
COPY --from=0 /usr/local/share/janus /usr/local/share/janus
ENV BUILD_DATE=${BUILD_DATE}
ENV GIT_BRANCH=${GIT_BRANCH}
ENV GIT_COMMIT=${GIT_COMMIT}
ENV VERSION=${VERSION}
EXPOSE 10000-10200/udp
EXPOSE 8188
EXPOSE 8088
EXPOSE 8089
EXPOSE 8889
EXPOSE 8000
EXPOSE 7088
EXPOSE 7089
CMD ["/usr/local/bin/janus"]