This repository has been archived by the owner on Oct 3, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 29
/
Dockerfile-cn
29 lines (29 loc) · 2.1 KB
/
Dockerfile-cn
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
FROM ubuntu:14.04
RUN rm /etc/apt/sources.list \
&& touch "/etc/apt/sources.list" \
&& echo "deb http://mirrors.ustc.edu.cn/ubuntu/ trusty main restricted universe multiverse" >> "/etc/apt/sources.list" \
&& echo "deb-src http://mirrors.ustc.edu.cn/ubuntu/ trusty main restricted universe multiverse" >> "/etc/apt/sources.list" \
&& echo "deb http://mirrors.ustc.edu.cn/ubuntu/ trusty-security main restricted universe multiverse" >> "/etc/apt/sources.list" \
&& echo "deb-src http://mirrors.ustc.edu.cn/ubuntu/ trusty-security main restricted universe multiverse" >> "/etc/apt/sources.list" \
&& echo "deb http://mirrors.ustc.edu.cn/ubuntu/ trusty-updates main restricted universe multiverse" >> "/etc/apt/sources.list" \
&& echo "deb-src http://mirrors.ustc.edu.cn/ubuntu/ trusty-updates main restricted universe multiverse" >> "/etc/apt/sources.list" \
&& echo "deb http://mirrors.ustc.edu.cn/ubuntu/ trusty-backports main restricted universe multiverse" >> "/etc/apt/sources.list" \
&& echo "deb-src http://mirrors.ustc.edu.cn/ubuntu/ trusty-backports main restricted universe multiverse" >> "/etc/apt/sources.list" \
&& sudo apt-get update \
&& sudo apt-get install -y nano python git wget make libtool automake pkg-config python-pip software-properties-common python-software-properties \
# installing libsodium, needed for toxcore
&& git clone https://github.com/jedisct1/libsodium.git \
&& cd libsodium && git checkout tags/1.0.3 && ./autogen.sh && ./configure --prefix=/usr && make && make install && cd ../ && rm -rf libsodium \
# installing libopus, needed for audio encoding/decoding
&& apt-get install -y libopus* \
# installing vpx
&& apt-get install -y yasm libvpx* \
# creating librarys' links and updating cache
&& ldconfig \
&& git clone https://github.com/TokTok/c-toxcore \
&& cd c-toxcore && autoreconf -i && mkdir _build && cd _build && ../configure \
&& make -j4 && make install && cd .. && rm -rf c-toxcore \
# PyTox
&& sudo apt-get install -y python-dev \
&& git clone https://github.com/aitjcize/PyTox \
&& cd PyTox && python setup.py install && cd .. && rm -rf PyTox