File size: 1,096 Bytes
de0a2a9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
39
40
41
42
43
FROM anchorxia/musev:1.0.1

#MAINTAINER 维护者信息
LABEL MAINTAINER="anchorxia"
LABEL Email="anchorxia@tencent.com, zhanchao019@foxmail.com"
LABEL Description="musev gradio image, from docker pull anchorxia/musev:latest"

# RUN useradd -r huggingface_root
# USER huggingface_root

SHELL ["/bin/bash", "--login", "-c"]

USER root
RUN chown root:root -R /root

    
WORKDIR /root

RUN git clone --recursive https://github.com/TMElyralab/MuseV.git -b deploy


RUN echo "export PYTHONPATH=\${PYTHONPATH}:/root/MuseV" >> ~/.bashrc \
    && echo "export PYTHONPATH=\${PYTHONPATH}:/root/MuseV/MMCM" >> ~/.bashrc \
    && echo "export PYTHONPATH=\${PYTHONPATH}:/root/MuseV/diffusers/src" >> ~/.bashrc \
    && echo "export PYTHONPATH=\${PYTHONPATH}:/root/MuseV/controlnet_aux/src" >> ~/.bashrc 
    

#WORKDIR /root/MuseV/scripts/gradio
RUN chmod -R 777 /root
RUN mv /root/MuseV/* /

WORKDIR /scripts/gradio



#### install requirement here
RUN pip install cuid gradio huggingface_hub
#RUN chmod -R 777 /
RUN mkdir /checkpoints

EXPOSE 7860
#todo: need change to app.py
CMD ["python", "app_test.py"]