ARG PYTHON_VERSION=3.8 FROM python:${PYTHON_VERSION} ARG TORCHAUDIO_VERSION="0.13.0" ARG TORCH_VERSION="1.13.0" ARG K2_VERSION="1.24.4.dev20231220" ARG KALDIFEAT_VERSION="1.25.3.dev20231221" ARG _K2_VERSION="${K2_VERSION}+cpu.torch${TORCH_VERSION}" ARG _KALDIFEAT_VERSION="${KALDIFEAT_VERSION}+cpu.torch${TORCH_VERSION}" RUN apt-get update -y && \ apt-get install -qq -y \ cmake \ ffmpeg \ git \ git-lfs \ graphviz \ less \ tree \ vim \ && \ apt-get clean && \ rm -rf /var/cache/apt/archives /var/lib/apt/lists LABEL authors="Fangjun Kuang " LABEL k2_version=${_K2_VERSION} LABEL kaldifeat_version=${_KALDIFEAT_VERSION} LABEL github_repo="https://github.com/k2-fsa/icefall" # Install dependencies RUN pip install --no-cache-dir \ torch==${TORCH_VERSION} torchaudio==${TORCHAUDIO_VERSION} -f https://download.pytorch.org/whl/cpu/torch_stable.html \ k2==${_K2_VERSION} -f https://k2-fsa.github.io/k2/cpu.html \ \ git+https://github.com/lhotse-speech/lhotse \ kaldifeat==${_KALDIFEAT_VERSION} -f https://csukuangfj.github.io/kaldifeat/cpu.html \ dill \ graphviz \ kaldi-decoder \ kaldi_native_io \ kaldialign \ kaldifst \ kaldilm \ matplotlib \ multi_quantization \ numpy \ onnx \ onnxmltools \ onnxruntime \ pytest \ sentencepiece>=0.1.96 \ pypinyin==0.50.0 \ six \ tensorboard \ typeguard # 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