Team Ai
Apppublic

coding-alt/MuseVDemo

sourceHugging Facecreativeml-openrail-mupdated 3y agoView on Hugging Face
0likes
Dockerfile53 linesDownload Raw Back to root
1FROM anchorxia/musev:latest2 3#MAINTAINER 维护者信息4LABEL MAINTAINER="anchorxia, zhanchao"5LABEL Email="anchorxia@tencent.com, zhanchao019@foxmail.com"6LABEL Description="musev gradio image, from docker pull anchorxia/musev:latest"7 8SHELL ["/bin/bash", "--login", "-c"]9 10# Set up a new user named "user" with user ID 100011RUN useradd -m -u 1000 user12 13# Switch to the "user" user14USER user15 16# Set home to the user's home directory17ENV HOME=/home/user \18	PATH=/home/user/.local/bin:$PATH19 20# Set the working directory to the user's home directory21WORKDIR $HOME/app22 23RUN echo "docker start"\ 24  && whoami \25  && which python \26  && pwd27 28RUN git clone -b main --recursive https://github.com/TMElyralab/MuseV.git29# RUN mkdir ./MuseV/checkpoints \30#   && ls -l ./MuseV31RUN chmod -R 777 /home/user/app/MuseV32 33# RUN git clone -b main https://huggingface.co/TMElyralab/MuseV /home/user/app/MuseV/checkpoints34 35RUN . /opt/conda/etc/profile.d/conda.sh  \36    && echo "source activate musev" >> ~/.bashrc \37    && conda activate musev \38    && conda env list39 40RUN echo "export PYTHONPATH=\${PYTHONPATH}:/home/user/app/MuseV:/home/user/app/MuseV/MMCM:/home/user/app/MuseV/diffusers/src:/home/user/app/MuseV/controlnet_aux/src" >> ~/.bashrc41 42WORKDIR /home/user/app/MuseV/scripts/gradio/43 44# Add entrypoint script45COPY --chown=user entrypoint.sh ./entrypoint.sh46RUN chmod +x ./entrypoint.sh47RUN ls -l  ./48 49EXPOSE 786050 51# CMD ["/bin/bash", "-c", "python app.py"]52CMD ["./entrypoint.sh"]53