forked from aitjcize/PyTox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
45 lines (37 loc) · 1.52 KB
/
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
FROM ubuntu:trusty
RUN sudo apt-get update
RUN sudo apt-get install -y git wget make libtool automake pkg-config python-pip
# test requirements
RUN sudo pip install tox
## python interpreters
RUN sudo apt-get install -y software-properties-common python-software-properties
RUN sudo add-apt-repository -y ppa:fkrull/deadsnakes
RUN sudo apt-get update
RUN sudo apt-get install -y python3.5 python3.4 python3.3 python3.2 python2.7 python2.6
# installing libsodium, needed for toxcore
RUN git clone https://github.com/jedisct1/libsodium.git
RUN cd libsodium && git checkout tags/1.0.3 && ./autogen.sh && ./configure --prefix=/usr && make && make install
# installing libopus, needed for audio encoding/decoding
RUN wget http://downloads.xiph.org/releases/opus/opus-1.1.tar.gz
RUN tar xzf opus-1.1.tar.gz
RUN cd opus-1.1 && ./configure && make && make install
# installing vpx
RUN apt-get install -y yasm
RUN git clone https://chromium.googlesource.com/webm/libvpx
RUN cd libvpx && ./configure --enable-shared && make && make install
# creating librarys' links and updating cache
RUN ldconfig
RUN git clone https://github.com/irungentoo/toxcore.git
RUN cd toxcore && autoreconf -i
RUN cd toxcore && ./configure --prefix=/usr --disable-tests --disable-ntox
RUN cd toxcore && make
RUN cd toxcore && make install
# PyTox
RUN sudo apt-get install -y python-dev
ADD pytox PyTox/pytox
ADD setup.py PyTox/setup.py
ADD examples PyTox/examples
ADD tests PyTox/tests
ADD MANIFEST.in PyTox/MANIFEST.in
ADD tox.ini PyTox/tox.ini
RUN cd PyTox && python setup.py install