-
Notifications
You must be signed in to change notification settings - Fork 34
/
Dockerfile
25 lines (19 loc) · 835 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
FROM python:3.7-buster
ARG VERSION="0.7.4"
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 entry.sh /
ENTRYPOINT ["/entry.sh"]