forked from jchavanton/voip_patrol
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
26 lines (20 loc) · 865 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
FROM python:3.7-buster
ARG VERSION="0.4.0"
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
RUN echo "building VoIP Patrol" \
&& mkdir /git && cd /git && git clone https://github.com/jchavanton/voip_patrol.git \
&& cd voip_patrol && git checkout ${VERSION} \
&& git submodule update --init \
&& cp include/config_site.h pjproject/pjlib/include/pj/config_site.h \
&& cd pjproject && ./configure --disable-libwebrtc --disable-opencore-amr \
&& make dep && make && make install \
&& cd .. && cmake CMakeLists.txt && make
RUN ln -s /git/voip_patrol/voice_ref_files /voice_ref_files
RUN mkdir /xml
RUN mkdir /output
COPY xml/basic_server.xml /xml
COPY xml/demo_server.xml /xml
COPY entry.sh /
ENTRYPOINT ["/entry.sh"]