"vscode:/vscode.git/clone" did not exist on "3258a89b6e4c2030ca47dfe51483e768cbd38b33"
Dockerfile 1.15 KB
Newer Older
1
FROM nvidia/cuda:12.1.0-runtime-ubuntu20.04
2
3
4
5
6
LABEL maintainer="Hugging Face"
LABEL repository="diffusers"

ENV DEBIAN_FRONTEND=noninteractive

7
8
9
10
11
RUN apt-get -y update \
    && apt-get install -y software-properties-common \
    && add-apt-repository ppa:deadsnakes/ppa

RUN apt install -y bash \
12
13
14
15
16
17
18
    build-essential \
    git \
    git-lfs \
    curl \
    ca-certificates \
    libsndfile1-dev \
    libgl1 \
19
    python3.10 \
20
    python3.10-dev \
21
    python3-pip \
22
    python3.10-venv && \
23
24
25
    rm -rf /var/lib/apt/lists

# make sure to use venv
26
RUN python3.10 -m venv /opt/venv
27
28
29
ENV PATH="/opt/venv/bin:$PATH"

# pre-install the heavy dependencies (these can later be overridden by the deps from setup.py)
30
31
RUN python3.10 -m pip install --no-cache-dir --upgrade pip uv==0.1.11 && \
    python3.10 -m uv pip install --no-cache-dir \
32
33
34
    torch \
    torchvision \
    torchaudio \
35
    invisible_watermark && \
36
    python3.10 -m pip install --no-cache-dir \
37
38
39
40
    accelerate \
    datasets \
    hf-doc-builder \
    huggingface-hub \
Dhruv Nair's avatar
Dhruv Nair committed
41
    hf_transfer \
42
43
    Jinja2 \
    librosa \
44
    numpy==1.26.4 \
45
46
47
    scipy \
    tensorboard \
    transformers \
Dhruv Nair's avatar
Dhruv Nair committed
48
    pytorch-lightning
49

50
CMD ["/bin/bash"]