-
-
Notifications
You must be signed in to change notification settings - Fork 83
/
Dockerfile.cuda12
25 lines (19 loc) · 958 Bytes
/
Dockerfile.cuda12
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
# Use the latest CUDA 12 runtime as base image
FROM nvidia/cuda:12.3.1-devel-ubuntu22.04
# Set the working directory in the container
WORKDIR /workdir
RUN apt-get update && apt-get install -y \
ffmpeg \
build-essential \
python3 \
python3-pip \
&& rm -rf /var/lib/apt/lists/*
RUN python3 -m pip install --upgrade pip
# Install the CUDA 12 compatible version of ONNXRuntime (the default CUDA version for ORT is still 11.8 so they've provided a separate package index)
# See https://onnxruntime.ai/docs/install/
RUN pip install onnxruntime-gpu --extra-index-url https://aiinfra.pkgs.visualstudio.com/PublicPackages/_packaging/onnxruntime-cuda-12/pypi/simple/
# Install audio-separator without any specific onnxruntime (onnxruntime should already be satisfied by the above)
RUN --mount=type=cache,target=/root/.cache \
pip3 install "audio-separator"
# Run audio-separator when the container launches
ENTRYPOINT ["audio-separator"]