"server/vscode:/vscode.git/clone" did not exist on "72ee382dedb9d2988b82ddca1e6d8933088ec707"
Dockerfile 1.14 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
41
42
    accelerate \
    datasets \
    hf-doc-builder \
    huggingface-hub \
    Jinja2 \
    librosa \
43
    numpy==1.26.4 \
44
45
46
    scipy \
    tensorboard \
    transformers \
Dhruv Nair's avatar
Dhruv Nair committed
47
    pytorch-lightning
48

49
CMD ["/bin/bash"]