"router/vscode:/vscode.git/clone" did not exist on "7b870e1e1837654bfc268748138ea81402c6afc7"
Dockerfile 1.39 KB
Newer Older
1
FROM nvidia/cuda:12.1.0-runtime-ubuntu20.04
Dhruv Nair's avatar
Dhruv Nair committed
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 \
Dhruv Nair's avatar
Dhruv Nair committed
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 \
Dhruv Nair's avatar
Dhruv Nair committed
21
                   python3-pip \
22
                   python3.10-venv && \
Dhruv Nair's avatar
Dhruv Nair committed
23
24
25
    rm -rf /var/lib/apt/lists

# make sure to use venv
26
RUN python3.10 -m venv /opt/venv
Dhruv Nair's avatar
Dhruv Nair committed
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 pip install --no-cache-dir \
32
33
34
        torch \
        torchvision \
        torchaudio \
Dhruv Nair's avatar
Dhruv Nair committed
35
        invisible_watermark && \
36
    python3.10 -m uv pip install --no-cache-dir \
Dhruv Nair's avatar
Dhruv Nair committed
37
38
39
40
        accelerate \
        datasets \
        hf-doc-builder \
        huggingface-hub \
Dhruv Nair's avatar
Dhruv Nair committed
41
        hf_transfer \
Dhruv Nair's avatar
Dhruv Nair committed
42
43
        Jinja2 \
        librosa \
44
        numpy==1.26.4 \
Dhruv Nair's avatar
Dhruv Nair committed
45
46
47
        scipy \
        tensorboard \
        transformers \
48
49
        xformers  \
        hf_transfer
Dhruv Nair's avatar
Dhruv Nair committed
50
51

CMD ["/bin/bash"]