Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- FROM buildpack-deps
- RUN apt-get update
- ##### download libtgvoip to /libtgvoip
- # Download libtgvoip
- RUN git clone https://github.com/grishka/libtgvoip.git
- RUN mkdir -p /libtgvoip/build
- # copy stek's stuff
- COPY ./CMakeLists.txt /libtgvoip
- ##### openssl
- # change dir
- WORKDIR /libtgvoip
- # download openssl-1.0.1
- RUN wget https://ftp.openssl.org/source/old/1.0.1/openssl-1.0.1.tar.gz
- RUN tar -xf openssl-1.0.1.tar.gz
- # change dir
- WORKDIR /libtgvoip/openssl-1.0.1
- # build openssl
- RUN ./config --prefix=/libtgvoip/libraries/ --openssldir=/usr/local/ssl
- RUN make
- RUN make install_sw
- ##### opus
- # change dir
- WORKDIR /libtgvoip
- # download opus-1.1
- RUN wget http://downloads.xiph.org/releases/opus/opus-1.1.tar.gz
- RUN tar -xf opus-1.1.tar.gz
- # change dir
- WORKDIR /libtgvoip/opus-1.1
- # build opus
- RUN ./configure --prefix=/libtgvoip/libraries/ \
- --disable-static \
- --docdir=/usr/share/doc/opus-1.1
- RUN make
- RUN make install
- ##### libtgvoip
- # libtgvoip deps
- RUN apt-get install cmake libpulse-dev libasound2-dev -y
- # change dir
- WORKDIR /libtgvoip/build
- COPY CallMakefile .
- COPY main.cpp .
- # build libtgvoip
- RUN cmake ..
- RUN ls -l
- RUN make
Add Comment
Please, Sign In to add comment