mirror of
https://github.com/k2-fsa/icefall.git
synced 2025-08-08 09:32:20 +00:00
63 lines
1.6 KiB
Docker
63 lines
1.6 KiB
Docker
FROM pytorch/pytorch:2.0.0-cuda11.7-cudnn8-runtime
|
|
|
|
ENV LC_ALL C.UTF-8
|
|
|
|
ARG DEBIAN_FRONTEND=noninteractive
|
|
|
|
ARG K2_VERSION="1.24.3.dev20230718+cuda11.7.torch2.0.0"
|
|
ARG KALDIFEAT_VERSION="1.25.0.dev20230726+cuda11.7.torch2.0.0"
|
|
ARG TORCHAUDIO_VERSION="2.0.0+cu117"
|
|
|
|
LABEL authors="Fangjun Kuang <csukuangfj@gmail.com>"
|
|
LABEL k2_version=${K2_VERSION}
|
|
LABEL kaldifeat_version=${KALDIFEAT_VERSION}
|
|
LABEL github_repo="https://github.com/k2-fsa/icefall"
|
|
|
|
RUN apt-get update && \
|
|
apt-get install -y --no-install-recommends \
|
|
curl \
|
|
vim \
|
|
libssl-dev \
|
|
autoconf \
|
|
automake \
|
|
bzip2 \
|
|
ca-certificates \
|
|
ffmpeg \
|
|
g++ \
|
|
gfortran \
|
|
git \
|
|
libtool \
|
|
make \
|
|
patch \
|
|
sox \
|
|
subversion \
|
|
unzip \
|
|
valgrind \
|
|
wget \
|
|
zlib1g-dev \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
# Install dependencies
|
|
RUN pip install --no-cache-dir \
|
|
torchaudio==${TORCHAUDIO_VERSION} -f https://download.pytorch.org/whl/torch_stable.html \
|
|
k2==${K2_VERSION} -f https://k2-fsa.github.io/k2/cuda.html \
|
|
git+https://github.com/lhotse-speech/lhotse \
|
|
kaldifeat==${KALDIFEAT_VERSION} -f https://csukuangfj.github.io/kaldifeat/cuda.html \
|
|
\
|
|
kaldi_native_io \
|
|
kaldialign \
|
|
kaldifst \
|
|
kaldilm \
|
|
sentencepiece>=0.1.96 \
|
|
tensorboard \
|
|
typeguard \
|
|
dill
|
|
|
|
RUN git clone https://github.com/k2-fsa/icefall /workspace/icefall && \
|
|
cd /workspace/icefall && \
|
|
pip install --no-cache-dir -r requirements.txt
|
|
|
|
ENV PYTHONPATH /workspace/icefall:$PYTHONPATH
|
|
|
|
WORKDIR /workspace/icefall
|