-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
34 lines (27 loc) · 688 Bytes
/
Dockerfile
File metadata and controls
34 lines (27 loc) · 688 Bytes
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
ARG NPROC=10
FROM ubuntu:18.04
RUN apt-get update --fix-missing \
&& apt-get install -y \
git \
build-essential \
python \
python3 \
sox \
zlib1g-dev \
automake \
autoconf \
unzip \
wget \
libtool \
subversion \
&& apt-get clean autoclean \
&& apt-get autoremove -y
WORKDIR /opt
ENV KALDI_ROOT=/opt/kaldi
RUN git clone --depth=1 https://github.com/kaldi-asr/kaldi.git \
&& cd /opt/kaldi/tools \
&& make -j$NPROC \
&& sed -i "s/#matrix-lib/matrix-lib/" /opt/kaldi/src/matrix/Makefile
ENV PATH=$KALDI_ROOT/src/matrix:$PATH
COPY speed_test.sh /opt
CMD ["/opt/speed_test.sh"]