Vivian Liu commited on
Commit ·
5303d77
1
Parent(s): 93f8c69
Readded dockerfile
Browse files- Dockerfile +42 -0
Dockerfile
ADDED
|
@@ -0,0 +1,42 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM nvidia/cuda:12.2.0-base-ubuntu22.04
|
| 2 |
+
ENV DEBIAN_FRONTEND noninteractive
|
| 3 |
+
|
| 4 |
+
RUN apt-get update -y && apt-get upgrade -y \
|
| 5 |
+
&& 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 \
|
| 6 |
+
|
| 7 |
+
|
| 8 |
+
RUN sudo add-apt-repository ppa:savoury1/ffmpeg4 && apt-get update -y && apt-get install -y ffmpeg
|
| 9 |
+
|
| 10 |
+
RUN pip3 install --upgrade pip
|
| 11 |
+
|
| 12 |
+
RUN git clone https://github.com/hellovivian/generative-disco.git && cd generative-disco && pip install --ignore-installed stable_diffusion_videos
|
| 13 |
+
|
| 14 |
+
RUN adduser --disabled-password --gecos '' user && adduser user sudo
|
| 15 |
+
#RUN mkdir /content && chown -R user:user /content
|
| 16 |
+
#WORKDIR /content
|
| 17 |
+
RUN chown -R user:user /generative-disco/static/
|
| 18 |
+
|
| 19 |
+
USER user
|
| 20 |
+
CMD /bin/bash
|
| 21 |
+
|
| 22 |
+
RUN echo ffmpeg -version
|
| 23 |
+
|
| 24 |
+
#RUN echo $PATH
|
| 25 |
+
#RUN export PATH="$HOME/user/.local/bin:$PATH"; echo $PATH
|
| 26 |
+
#RUN echo $PATH
|
| 27 |
+
|
| 28 |
+
#RUN pip install numba youtube-dl librosa flask openai moviepy Pillow accelerate \
|
| 29 |
+
# && mkdir ./.cache
|
| 30 |
+
|
| 31 |
+
|
| 32 |
+
EXPOSE 7860
|
| 33 |
+
WORKDIR generative-disco
|
| 34 |
+
COPY . ./generative-disco
|
| 35 |
+
|
| 36 |
+
|
| 37 |
+
CMD [ "python", "../generative-disco/stable_diffusion_videos/app.py"]
|
| 38 |
+
|
| 39 |
+
|
| 40 |
+
#CMD ["python", "../generative-disco/flask_app.py", "--port", "7860", "--host", "0.0.0.0"]
|
| 41 |
+
|
| 42 |
+
|