forked from jchavanton/voip_perf
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
28 lines (21 loc) · 922 Bytes
/
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
FROM debian
ENV VERSION=0.6.2
RUN echo "installing dependencies" && apt-get update \
&& apt-get install -y build-essential libcurl4-openssl-dev cmake pkg-config libasound2-dev \
&& apt-get -y install libssl-dev git libjansson-dev \
&& ldconfig
RUN echo "cloning VoIP Perf" \
&& git clone https://github.com/jchavanton/voip_perf.git \
&& cd voip_perf \
&& git checkout ${VERSION} \
&& git submodule update --init
RUN echo "building (configure) PJLIB" && cd voip_perf \
&& cp include/config_site.h pjproject/pjlib/include/pj/config_site.h \
&& cd pjproject && ./configure --disable-libwebrtc
RUN echo "building (make) PJLIB .." && cd voip_perf \
&& cd pjproject && make dep && make && make install
RUN echo "building VoIP Perf" && cd voip_perf \
&& cmake CMakeLists.txt \
&& make
COPY entry.sh /
ENTRYPOINT ["/entry.sh"]