Skip to content

Commit f5805db

Browse files
authored
Create Dockerfile
Creates a Dockerfile in support of Ubuntu 22.04.
1 parent 71f38e6 commit f5805db

File tree

1 file changed

+48
-0
lines changed

1 file changed

+48
-0
lines changed
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
FROM nvidia/cuda:12.2.0-devel-ubuntu22.04
2+
LABEL maintainer="[email protected]"
3+
4+
RUN apt update && \
5+
apt install -y \
6+
software-properties-common && \
7+
apt-add-repository multiverse && \
8+
apt update && \
9+
apt install -y \
10+
build-essential \
11+
g++ \
12+
make \
13+
automake \
14+
bzip2 \
15+
unzip \
16+
wget \
17+
sox \
18+
libtool \
19+
git \
20+
subversion \
21+
python2.7 \
22+
python3 \
23+
zlib1g-dev \
24+
ca-certificates \
25+
gfortran \
26+
patch \
27+
ffmpeg \
28+
vim \
29+
python2-dev \
30+
python3-dev && \
31+
apt update && \
32+
yes | DEBIAN_FRONTEND=noninteractive apt install -yqq \
33+
intel-mkl && \
34+
rm -rf /var/lib/apt/lists/*
35+
36+
RUN ln -s /usr/bin/python2.7 /usr/bin/python
37+
38+
RUN git clone --depth 1 https://github.com/kaldi-asr/kaldi.git /opt/kaldi && \
39+
cd /opt/kaldi/tools && \
40+
make -j $(nproc) && \
41+
cd /opt/kaldi/src && \
42+
./configure --shared --use-cuda && \
43+
make depend -j $(nproc) && \
44+
make -j $(nproc) && \
45+
find /opt/kaldi -type f \( -name "*.o" -o -name "*.la" -o -name "*.a" \) -exec rm {} \; && \
46+
rm -rf /opt/kaldi/.git
47+
48+
WORKDIR /opt/kaldi/

0 commit comments

Comments
 (0)