Spaces:
Runtime error
Runtime error
anchor
commited on
Update Dockerfile
Browse files- Dockerfile +5 -18
Dockerfile
CHANGED
|
@@ -26,33 +26,20 @@ RUN whoami
|
|
| 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 |
-
&& /bin/bash -c "source ~/.bashrc"
|
| 39 |
-
|
| 40 |
-
RUN cat ~/.bashrc
|
| 41 |
-
RUN chmod -R 777 /root
|
| 42 |
-
RUN mv /root/MuseV/scripts /
|
| 43 |
-
|
| 44 |
-
WORKDIR /scripts/gradio
|
| 45 |
|
|
|
|
| 46 |
RUN mkdir /checkpoints
|
|
|
|
| 47 |
|
| 48 |
RUN ls -l
|
| 49 |
|
|
|
|
|
|
|
| 50 |
|
| 51 |
RUN which python
|
| 52 |
-
RUN echo "pythonpath" $PYTHONPATH
|
| 53 |
EXPOSE 7860
|
| 54 |
|
| 55 |
-
CMD ["
|
| 56 |
-
CMD ["username"]
|
| 57 |
-
CMD ["ls -l"]
|
| 58 |
-
CMD ["/bin/bash", "-c", "source ~/.bashrc && source /opt/conda/etc/profile.d/conda.sh && conda activate musev && python app.py"]
|
|
|
|
| 26 |
RUN git clone -b deploy --recursive https://github.com/TMElyralab/MuseV.git
|
| 27 |
|
| 28 |
RUN . /opt/conda/etc/profile.d/conda.sh \
|
|
|
|
| 29 |
&& conda activate musev \
|
| 30 |
&& conda env list \
|
| 31 |
&& pip install cuid gradio huggingface_hub
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 32 |
|
| 33 |
+
RUN mv /root/MuseV/scripts /
|
| 34 |
RUN mkdir /checkpoints
|
| 35 |
+
WORKDIR /scripts/gradio
|
| 36 |
|
| 37 |
RUN ls -l
|
| 38 |
|
| 39 |
+
ENV PYTHONPATH=/root/MuseV:/root/MMCM:/root/diffusers/src:/root/controlnet_aux/src
|
| 40 |
+
RUN echo "pythonpath" $PYTHONPATH
|
| 41 |
|
| 42 |
RUN which python
|
|
|
|
| 43 |
EXPOSE 7860
|
| 44 |
|
| 45 |
+
CMD ["/bin/bash", "-c", ". /opt/conda/etc/profile.d/conda.sh && conda activate musev && python app.py"]
|
|
|
|
|
|
|
|
|