forked from pykaldi/pykaldi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.min
64 lines (63 loc) · 1.9 KB
/
Dockerfile.min
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
# Dockerfile for building PyKaldi min image
FROM ubuntu:16.04
# We do this in a single RUN so that it does not add weight by creating layers
RUN apt-get update \
&& apt-get install -y \
python3 \
python3-pip \
python2.7 \
autoconf \
automake \
cmake \
curl \
g++ \
git \
graphviz \
libatlas3-base \
libtool \
make \
pkg-config \
subversion \
unzip \
wget \
zlib1g-dev \
&& ln -s /usr/bin/python3 /usr/bin/python \
&& ln -s /usr/bin/pip3 /usr/bin/pip \
&& pip install --upgrade pip numpy setuptools pyparsing jupyter ninja \
&& cd / \
&& git clone https://github.com/pykaldi/pykaldi.git \
# && cd /pykaldi/tools \
&& git clone -b pykaldi https://github.com/pykaldi/kaldi.git \
&& cd kaldi/tools \
&& mkdir -p python \
&& touch python/.use_default_python \
&& make -j12 openfst OPENFST_CONFIGURE="--enable-shared --enable-bin --disable-dependency-tracking" \
&& rm -rf openfst/src/script/.libs \
&& cd ../src \
&& ./configure --shared \
# && make -j12 depend \
# && make -j12 base matrix util feat tree gmm transform sgmm2 fstext hmm lm decoder lat cudamatrix nnet2 nnet3 rnnlm chain ivector online2 kws \
&& make -j12 \
&& find . -name "*.a" -delete \
&& find . -name "*.o" -delete \
# && cd /pykaldi/tools \
&& cd / \
&& git clone https://github.com/google/protobuf.git protobuf \
&& cd protobuf \
&& ./autogen.sh \
&& ./configure --prefix /usr --disable-static --disable-dependency-tracking \
&& make -j12 \
&& make install \
&& cd python \
&& python setup.py build \
&& python setup.py install \
# && cd /pykaldi/tools \
&& cd / \
&& rm -rf protobuf \
&& cd /pykaldi/tools/ \
&& ./install_clif.sh \
&& rm -rf clif_backend \
&& rm -rf clif \
&& rm -rf /pykaldi
# && cd /pykaldi \
# && python setup.py develop