|
FROM nvidia/cuda:12.2.0-base-ubuntu22.04 |
|
|
|
ENV DEBIAN_FRONTEND noninteractive |
|
|
|
|
|
RUN apt-get update -y && apt-get upgrade -y \ |
|
&& apt-get install -y \ |
|
libgl1 \ |
|
libgl1-mesa-glx \ |
|
libglib2.0-0 \ |
|
wget \ |
|
git \ |
|
git-lfs \ |
|
python3-pip \ |
|
python-is-python3 \ |
|
snapd \ |
|
curl \ |
|
ca-certificates \ |
|
sudo \ |
|
zip \ |
|
unzip \ |
|
htop \ |
|
bzip2 \ |
|
libx11-6 \ |
|
build-essential \ |
|
libsndfile-dev \ |
|
software-properties-common \ |
|
&& apt-get clean |
|
|
|
|
|
RUN add-apt-repository ppa:savoury1/ffmpeg4 -y \ |
|
&& apt-get update -y \ |
|
&& apt-get install -y ffmpeg \ |
|
&& apt-get clean |
|
|
|
|
|
RUN pip3 install --upgrade pip |
|
|
|
|
|
RUN git clone https://github.com/hellovivian/generative-disco.git \ |
|
&& cd generative-disco \ |
|
&& pip install --ignore-installed stable_diffusion_videos openai numba |
|
|
|
|
|
RUN adduser --disabled-password --gecos '' user \ |
|
&& adduser user sudo \ |
|
&& chown -R user:user /generative-disco/static/ |
|
|
|
|
|
USER user |
|
|
|
|
|
WORKDIR /generative-disco |
|
COPY . . |
|
|
|
|
|
EXPOSE 7860 |
|
|
|
|
|
CMD ["python", "stable_diffusion_videos/app.py"] |
|
|
|
|