zhanchao019
commited on
Commit
•
de0a2a9
1
Parent(s):
a22e36f
huggingface deployment file
Browse files- Dockerfile +43 -0
Dockerfile
ADDED
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM anchorxia/musev:1.0.1
|
2 |
+
|
3 |
+
#MAINTAINER 维护者信息
|
4 |
+
LABEL MAINTAINER="anchorxia"
|
5 |
+
LABEL Email="anchorxia@tencent.com, zhanchao019@foxmail.com"
|
6 |
+
LABEL Description="musev gradio image, from docker pull anchorxia/musev:latest"
|
7 |
+
|
8 |
+
# RUN useradd -r huggingface_root
|
9 |
+
# USER huggingface_root
|
10 |
+
|
11 |
+
SHELL ["/bin/bash", "--login", "-c"]
|
12 |
+
|
13 |
+
USER root
|
14 |
+
RUN chown root:root -R /root
|
15 |
+
|
16 |
+
|
17 |
+
WORKDIR /root
|
18 |
+
|
19 |
+
RUN git clone --recursive https://github.com/TMElyralab/MuseV.git -b deploy
|
20 |
+
|
21 |
+
|
22 |
+
RUN echo "export PYTHONPATH=\${PYTHONPATH}:/root/MuseV" >> ~/.bashrc \
|
23 |
+
&& echo "export PYTHONPATH=\${PYTHONPATH}:/root/MuseV/MMCM" >> ~/.bashrc \
|
24 |
+
&& echo "export PYTHONPATH=\${PYTHONPATH}:/root/MuseV/diffusers/src" >> ~/.bashrc \
|
25 |
+
&& echo "export PYTHONPATH=\${PYTHONPATH}:/root/MuseV/controlnet_aux/src" >> ~/.bashrc
|
26 |
+
|
27 |
+
|
28 |
+
#WORKDIR /root/MuseV/scripts/gradio
|
29 |
+
RUN chmod -R 777 /root
|
30 |
+
RUN mv /root/MuseV/* /
|
31 |
+
|
32 |
+
WORKDIR /scripts/gradio
|
33 |
+
|
34 |
+
|
35 |
+
|
36 |
+
#### install requirement here
|
37 |
+
RUN pip install cuid gradio huggingface_hub
|
38 |
+
#RUN chmod -R 777 /
|
39 |
+
RUN mkdir /checkpoints
|
40 |
+
|
41 |
+
EXPOSE 7860
|
42 |
+
#todo: need change to app.py
|
43 |
+
CMD ["python", "app_test.py"]
|