"vscode:/vscode.git/clone" did not exist on "aa6b01c6ed7d44e1daac473b3d354fc684d6a91a"
Dockerfile 1.38 KB
Newer Older
1
2
3
4
5
6
FROM ubuntu:20.04
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
                   build-essential \
                   git \
                   git-lfs \
                   curl \
                   ca-certificates \
17
                   libsndfile1-dev \
18
                   python3.10 \
19
                   python3.10-dev \
20
                   python3-pip \
21
                   libgl1 \
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
        --extra-index-url https://download.pytorch.org/whl/cpu && \
37
    python3.10 -m uv pip install --no-cache-dir \
38
39
40
41
        accelerate \
        datasets \
        hf-doc-builder \
        huggingface-hub \
Lucain's avatar
Lucain committed
42
        Jinja2 \
43
        librosa \
44
        numpy==1.26.4 \
45
46
        scipy \
        tensorboard \
47
        transformers matplotlib
48

49
CMD ["/bin/bash"]