forked from adefossez/demucs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
29 lines (23 loc) · 841 Bytes
/
Dockerfile
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
# Base image supports Nvidia CUDA but does not require it and can also run demucs on the CPU
FROM nvidia/cuda:11.8.0-base-ubuntu22.04
USER root
ENV TORCH_HOME=/data/models
ENV OMP_NUM_THREADS=1
# Install required tools
# Notes:
# - build-essential and python3-dev are included for platforms that may need to build some Python packages (e.g., arm64)
# - torchaudio >= 0.12 now requires ffmpeg on Linux, see https://github.com/facebookresearch/demucs/blob/main/docs/linux.md
RUN apt update && apt install -y --no-install-recommends \
build-essential \
ffmpeg \
git \
python3 \
python3-dev \
python3-pip \
&& rm -rf /var/lib/apt/lists/*
# Install dependencies
RUN python3 -m pip install -r requirements.txt
VOLUME /data/input
VOLUME /data/output
VOLUME /data/models
ENTRYPOINT ["/bin/bash", "--login", "-c"]