"awq/vscode:/vscode.git/clone" did not exist on "29ee66d9e77f3e443d48a17b4838d00a76bc6f5e"
Dockerfile 1.23 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
FROM nvidia/cuda:11.7.1-cudnn8-runtime-ubuntu20.04
LABEL maintainer="Hugging Face"
LABEL repository="diffusers"

ENV DEBIAN_FRONTEND=noninteractive

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

# make sure to use venv
RUN python3 -m venv /opt/venv
ENV PATH="/opt/venv/bin:$PATH"

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

47
CMD ["/bin/bash"]