Guest User

Untitled

a guest
Mar 29th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. FROM buildpack-deps
  2.  
  3. RUN apt-get update
  4.  
  5. ##### download libtgvoip to /libtgvoip
  6.  
  7. # Download libtgvoip
  8. RUN git clone https://github.com/grishka/libtgvoip.git
  9. RUN mkdir -p /libtgvoip/build
  10.  
  11. # copy stek's stuff
  12. COPY ./CMakeLists.txt /libtgvoip
  13.  
  14. ##### openssl
  15.  
  16. # change dir
  17. WORKDIR /libtgvoip
  18.  
  19.  
  20. # download openssl-1.0.1
  21. RUN wget https://ftp.openssl.org/source/old/1.0.1/openssl-1.0.1.tar.gz
  22. RUN tar -xf openssl-1.0.1.tar.gz
  23.  
  24. # change dir
  25. WORKDIR /libtgvoip/openssl-1.0.1
  26.  
  27. # build openssl
  28. RUN ./config --prefix=/libtgvoip/libraries/ --openssldir=/usr/local/ssl
  29. RUN make
  30. RUN make install_sw
  31.  
  32.  
  33. ##### opus
  34.  
  35. # change dir
  36. WORKDIR /libtgvoip
  37.  
  38. # download opus-1.1
  39. RUN wget http://downloads.xiph.org/releases/opus/opus-1.1.tar.gz
  40. RUN tar -xf opus-1.1.tar.gz
  41.  
  42. # change dir
  43. WORKDIR /libtgvoip/opus-1.1
  44.  
  45. # build opus
  46. RUN ./configure --prefix=/libtgvoip/libraries/ \
  47. --disable-static \
  48. --docdir=/usr/share/doc/opus-1.1
  49. RUN make
  50. RUN make install
  51.  
  52. ##### libtgvoip
  53.  
  54. # libtgvoip deps
  55. RUN apt-get install cmake libpulse-dev libasound2-dev -y
  56.  
  57. # change dir
  58. WORKDIR /libtgvoip/build
  59.  
  60. COPY CallMakefile .
  61. COPY main.cpp .
  62.  
  63. # build libtgvoip
  64. RUN cmake ..
  65. RUN ls -l
  66. RUN make
Add Comment
Please, Sign In to add comment