-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile-kaldi
34 lines (24 loc) · 1.18 KB
/
Dockerfile-kaldi
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
# This image builds kaldi only (without models); Serves as base image for image with acoustic model
#
# Do not use as kaldi image for production setup, it is not optimal (only for demonstration)
# will work on any linux distribution, but we use ubuntu as one of the most popular
FROM ubuntu:16.04
# STAGE 1. BUILDING KALDI. (http://kaldi-asr.org/doc/install.html)
# install git to clone kaldi source
RUN apt-get update && apt-get install -y git
# cloning kaldi source in /kaldi folder
RUN git clone https://github.com/kaldi-asr/kaldi
# following kaldi/INSTALL instructions to build kaldi
# installing tools (see /kaldi/tools/INSTALL)
# installing dependencies needed to build kaldi (run /kaldi/tools/extras/check_dependencies.sh)
RUN apt-get update && apt-get install -y \
wget g++ make automake autoconf bzip2 libtool subversion python2.7 python3 \
libatlas3-base zlib1g-dev
# building tools
RUN cd /kaldi/tools && make -j
# building kaldi (see /kaldi/src/INSTALL)
RUN cd /kaldi/src && ./configure --shared && make depend -j 8 && make -j 8
# kaldi is ready; binaries are in /kaldi/src/**bin folders
# cleaning to reduce image size
RUN cd /kaldi/tools/ && rm *tar.gz *.bz2
CMD ["bash"]