-
Notifications
You must be signed in to change notification settings - Fork 6
/
Dockerfile
57 lines (54 loc) · 1.29 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
FROM debian:8
ARG MAKE_JOBS=1
RUN apt-get update && apt-get install --no-install-recommends -y \
autoconf \
automake \
bzip2 \
g++ \
git \
libatlas3-base \
libtool-bin \
make \
patch \
python2.7 \
python3 \
python-pip \
subversion \
wget \
zlib1g-dev && \
apt-get clean && \
apt-get autoclean && \
apt-get autoremove -y
RUN mkdir -p /opt/kaldi && \
git clone https://github.com/kaldi-asr/kaldi /opt/kaldi && \
cd /opt/kaldi/tools && \
make -j${MAKE_JOBS} && \
./install_portaudio.sh && \
cd /opt/kaldi/src && \
./configure --shared && \
sed -i '/-g # -O0 -DKALDI_PARANOID/c\-O3 -DNDEBUG' kaldi.mk && \
make -j${MAKE_JOBS} depend && \
make -j${MAKE_JOBS} checkversion && \
make -j${MAKE_JOBS} kaldi.mk && \
make -j${MAKE_JOBS} mklibdir && \
make -j${MAKE_JOBS} \
base \
decoder \
fstext \
nnet3 \
online2 \
util && \
cd /opt/kaldi && git log -n1 > current-git-commit.txt && \
rm -rf /opt/kaldi/.git && \
rm -rf /opt/kaldi/egs/ /opt/kaldi/windows/ /opt/kaldi/misc/ && \
find /opt/kaldi/src/ \
-type f \
-not -name '*.h' \
-not -name '*.so' \
-delete && \
find /opt/kaldi/tools/ \
-type f \
-not -name '*.h' \
-not -name '*.so' \
-not -name '*.so*' \
-delete