Spaces:
Runtime error
Runtime error
anchor
commited on
Create Dockerfile
Browse files- Dockerfile +57 -0
Dockerfile
ADDED
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM anchorxia/musev:latest
|
2 |
+
|
3 |
+
#MAINTAINER 维护者信息
|
4 |
+
LABEL MAINTAINER="anchorxia, zhanchao"
|
5 |
+
LABEL Email="anchorxia@tencent.com, zhanchao019@foxmail.com"
|
6 |
+
LABEL Description="musev gradio image, from docker pull anchorxia/musev:latest"
|
7 |
+
|
8 |
+
|
9 |
+
SHELL ["/bin/bash", "--login", "-c"]
|
10 |
+
|
11 |
+
USER root
|
12 |
+
RUN chown root:root -R /root
|
13 |
+
|
14 |
+
|
15 |
+
RUN which python
|
16 |
+
|
17 |
+
RUN pwd
|
18 |
+
|
19 |
+
WORKDIR /root
|
20 |
+
|
21 |
+
RUN pwd
|
22 |
+
|
23 |
+
RUN ls -l
|
24 |
+
RUN whoami
|
25 |
+
|
26 |
+
RUN git clone -b deploy --recursive https://github.com/TMElyralab/MuseV.git
|
27 |
+
|
28 |
+
RUN . /opt/conda/etc/profile.d/conda.sh \
|
29 |
+
&& echo "source activate musev" >> ~/.bashrc \
|
30 |
+
&& conda activate musev \
|
31 |
+
&& conda env list \
|
32 |
+
&& pip install cuid gradio huggingface_hub
|
33 |
+
|
34 |
+
RUN echo "export PYTHONPATH=\${PYTHONPATH}:/root/MuseV" >> ~/.bashrc \
|
35 |
+
&& echo "export PYTHONPATH=\${PYTHONPATH}:/root/MMCM" >> ~/.bashrc \
|
36 |
+
&& echo "export PYTHONPATH=\${PYTHONPATH}:/root/diffusers/src" >> ~/.bashrc \
|
37 |
+
&& echo "export PYTHONPATH=\${PYTHONPATH}:/root/controlnet_aux/src" >> ~/.bashrc
|
38 |
+
|
39 |
+
|
40 |
+
RUN chmod -R 777 /root
|
41 |
+
RUN mv /root/MuseV/* /
|
42 |
+
|
43 |
+
WORKDIR /scripts/gradio
|
44 |
+
|
45 |
+
RUN mkdir /checkpoints
|
46 |
+
RUN cat app.py
|
47 |
+
RUN ls -l
|
48 |
+
|
49 |
+
|
50 |
+
RUN which python
|
51 |
+
|
52 |
+
EXPOSE 7860
|
53 |
+
|
54 |
+
CMD ["pwd"]
|
55 |
+
CMD ["username"]
|
56 |
+
CMD ["ls -l"]
|
57 |
+
CMD ["conda", "run", "-n", "musev", "python", "app.py"]
|