-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile-ubuntu-cuda
45 lines (41 loc) · 1.23 KB
/
Dockerfile-ubuntu-cuda
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
45
FROM nvidia/cuda:12.6.1-cudnn-devel-ubuntu24.04
LABEL maintainer="[email protected]"
RUN apt-get update && \
apt-get install -y --no-install-recommends \
build-essential \
g++ \
make \
automake \
bzip2 \
unzip \
wget \
sox \
libtool \
git \
subversion \
python3 \
zlib1g-dev \
ca-certificates \
gfortran \
patch \
ffmpeg \
vim && \
apt-get update && \
apt-get install -y --no-install-recommends\
software-properties-common && \
apt-add-repository multiverse && \
apt-get update && \
yes | DEBIAN_FRONTEND=noninteractive apt-get install -yqq --no-install-recommends\
intel-mkl && \
rm -rf /var/lib/apt/lists/*
RUN apt-get install -y python3-is-python
RUN git clone --depth 1 https://github.com/kaldi-asr/kaldi.git /opt/kaldi && \
cd /opt/kaldi/tools && \
make -j $(nproc) && \
cd /opt/kaldi/src && \
./configure --shared --use-cuda && \
make depend -j $(nproc) && \
make -j $(nproc) && \
find /opt/kaldi -type f \( -name "*.o" -o -name "*.la" -o -name "*.a" \) -exec rm {} \; && \
rm -rf /opt/kaldi/.git
WORKDIR /opt/kaldi/