Skip to content

Commit bf248aa

Browse files
authored
Merge pull request #4866 from wshilton/wshilton-add-dockerfile-for-ubuntu22.04
Wshilton add dockerfile for ubuntu22.04
2 parents b488400 + ebf6245 commit bf248aa

File tree

1 file changed

+46
-0
lines changed

1 file changed

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

0 commit comments

Comments
 (0)