forked from alumae/kaldi-gstreamer-server
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathDockerfile
69 lines (63 loc) · 2.33 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
FROM debian:8
MAINTAINER Eduardo Silva <[email protected]>
RUN apt-get update && apt-get install -y \
autoconf \
automake \
bzip2 \
g++ \
git \
gstreamer1.0-plugins-good \
gstreamer1.0-tools \
gstreamer1.0-pulseaudio \
gstreamer1.0-plugins-bad \
gstreamer1.0-plugins-base \
gstreamer1.0-plugins-ugly \
libatlas3-base \
libgstreamer1.0-dev \
libtool-bin \
make \
python2.7 \
python-pip \
python-yaml \
python-simplejson \
python-gi \
subversion \
wget \
zlib1g-dev && \
apt-get clean autoclean && \
apt-get autoremove -y && \
pip install ws4py==0.3.2 && \
pip install tornado && \
ln -s /usr/bin/python2.7 /usr/bin/python ; ln -s -f bash /bin/sh
RUN cd /opt && wget http://www.digip.org/jansson/releases/jansson-2.7.tar.bz2 && \
bunzip2 -c jansson-2.7.tar.bz2 | tar xf - && \
cd jansson-2.7 && \
./configure && make && make check && make install && \
echo "/usr/local/lib" >> /etc/ld.so.conf.d/jansson.conf && ldconfig && \
rm /opt/jansson-2.7.tar.bz2 && rm -rf /opt/jansson-2.7
RUN cd /opt && \
git clone https://github.com/kaldi-asr/kaldi && \
cd /opt/kaldi/tools && \
make && \
./install_portaudio.sh && \
cd /opt/kaldi/src && ./configure --shared && \
sed -i '/-g # -O0 -DKALDI_PARANOID/c\-O3 -DNDEBUG' kaldi.mk && \
make depend && make && \
cd /opt/kaldi/src/online && make depend && make && \
cd /opt/kaldi/src/gst-plugin && make depend && make && \
cd /opt && \
git clone https://github.com/alumae/gst-kaldi-nnet2-online.git && \
cd /opt/gst-kaldi-nnet2-online/src && \
sed -i '/KALDI_ROOT?=\/home\/tanel\/tools\/kaldi-trunk/c\KALDI_ROOT?=\/opt\/kaldi' Makefile && \
make depend && make && \
rm -rf /opt/gst-kaldi-nnet2-online/.git/ && \
find /opt/gst-kaldi-nnet2-online/src/ -type f -not -name '*.so' -delete && \
rm -rf /opt/kaldi/.git && \
rm -rf /opt/kaldi/egs/ /opt/kaldi/windows/ /opt/kaldi/misc/ && \
find /opt/kaldi/src/ -type f -not -name '*.so' -delete && \
find /opt/kaldi/tools/ -type f \( -not -name '*.so' -and -not -name '*.so*' \) -delete
RUN pip install thrift
RUN mkdir -p /opt/kaldi-gstreamer-server
WORKDIR /opt/kaldi-gstreamer-server
ADD . /opt/kaldi-gstreamer-server
RUN /opt/kaldi-gstreamer-server/test/models/download-fisher-nnet2.sh