-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
44 lines (44 loc) · 934 Bytes
/
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
FROM debian
RUN apt-get -y update && apt-get -y install \
autoconf \
automake \
bzip2 \
g++ \
gcc \
git \
libatlas3-base \
libtool \
make \
patch \
python \
python3 \
python3-pip \
subversion \
unzip \
wget \
zlib1g-dev
RUN \
wget https://github.com/kaldi-asr/kaldi/archive/master.zip -O kaldi.zip && \
unzip kaldi.zip && \
rm -f kaldi.zip && \
mv kaldi-master kaldi
RUN \
ln -sf bash /bin/sh && \
cd kaldi/tools && \
make -j16
RUN \
cd kaldi/src && \
./configure --shared && \
make depend -j16 && \
make -j16
RUN \
wget https://github.com/MontrealCorpusTools/Montreal-Forced-Aligner/archive/v0.8.1.zip -O mfa.zip && \
unzip mfa.zip && \
rm -f mfa.zip && \
mv Montreal-Forced-Aligner-0.8.1 mfa
RUN \
cd mfa && \
perl -i -pe 's/=$//' requirements.txt && \
python3 thirdparty/kaldibinaries.py /kaldi && \
pip3 install -r requirements.txt && \
freezing/freeze.sh