Skip to content

Commit

Permalink
Merge pull request #4866 from wshilton/wshilton-add-dockerfile-for-ub…
Browse files Browse the repository at this point in the history
…untu22.04

Wshilton add dockerfile for ubuntu22.04
  • Loading branch information
danpovey committed Nov 13, 2023
2 parents b488400 + ebf6245 commit bf248aa
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions docker/ubuntu22.04-cuda12.2.0/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
FROM nvidia/cuda:12.2.0-devel-ubuntu22.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 \
python2.7 \
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 ln -s /usr/bin/python2.7 /usr/bin/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/

0 comments on commit bf248aa

Please sign in to comment.