File size: 1,392 Bytes
a39fb62
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3303295
 
d04fbae
75edd5d
a39fb62
d04fbae
a39fb62
 
 
 
75edd5d
a39fb62
 
 
 
f3a26a7
a39fb62
 
 
 
 
872e486
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
FROM anchorxia/musev:latest

#MAINTAINER 维护者信息
LABEL MAINTAINER="anchorxia, zhanchao"
LABEL Email="[email protected], [email protected]"
LABEL Description="musev gradio image, from docker pull anchorxia/musev:latest"


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

USER root
RUN chown root:root -R /root


RUN which python

RUN  pwd

WORKDIR /root

RUN  pwd

RUN  ls -l
RUN whoami

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

RUN . /opt/conda/etc/profile.d/conda.sh  \
    && echo "source activate musev" >> ~/.bashrc \
    && conda activate musev \
    && conda env list \
    && pip install cuid gradio huggingface_hub
    
RUN echo "export PYTHONPATH=\${PYTHONPATH}:/root/MuseV" >> ~/.bashrc \
    && echo "export PYTHONPATH=\${PYTHONPATH}:/root/MMCM" >> ~/.bashrc \
    && echo "export PYTHONPATH=\${PYTHONPATH}:/root/diffusers/src" >> ~/.bashrc \
    && echo "export PYTHONPATH=\${PYTHONPATH}:/root/controlnet_aux/src" >> ~/.bashrc \
    && /bin/bash -c "source ~/.bashrc"

RUN cat ~/.bashrc
RUN chmod -R 777 /root
RUN mv /root/MuseV/scripts /

WORKDIR /scripts/gradio

RUN mkdir /checkpoints

RUN  ls -l


RUN which python
RUN echo "pythonpath" $PYTHONPATH
EXPOSE 7860

CMD ["pwd"]
CMD ["username"]
CMD ["ls -l"]
CMD ["/bin/bash", "-c", "source ~/.bashrc && source /opt/conda/etc/profile.d/conda.sh && conda activate musev && python app.py"]