forked from cumulo-autumn/StreamDiffusion
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
39 lines (31 loc) · 1.15 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
FROM nvidia/cuda:11.8.0-cudnn8-devel-ubuntu22.04
ENV DEBIAN_FRONTEND=noninteractive PIP_PREFER_BINARY=1 \
CUDA_HOME=/usr/local/cuda-11.8 TORCH_CUDA_ARCH_LIST="8.6"
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
RUN apt-get update && apt-get install -y --no-install-recommends \
make \
wget \
tar \
build-essential \
libgl1-mesa-dev \
curl \
unzip \
git \
python3-dev \
python3-pip \
libglib2.0-0 \
&& apt clean && rm -rf /var/lib/apt/lists/* \
&& ln -s /usr/bin/python3 /usr/bin/python
RUN echo "export PATH=/usr/local/cuda/bin:$PATH" >> /etc/bash.bashrc \
&& echo "export LD_LIBRARY_PATH=/usr/local/cuda/lib64:$LD_LIBRARY_PATH" >> /etc/bash.bashrc \
&& echo "export CUDA_HOME=/usr/local/cuda-11.8" >> /etc/bash.bashrc
RUN pip3 install \
torch==2.1.0 \
torchvision==0.16.0 \
xformers \
--index-url https://download.pytorch.org/whl/cu118
COPY . /streamdiffusion
WORKDIR /streamdiffusion
RUN python setup.py develop easy_install streamdiffusion[tensorrt] \
&& python -m streamdiffusion.tools.install-tensorrt
WORKDIR /home/ubuntu/streamdiffusion