CoolFace
Apppublic

TMElyralab/MuseTalk

sourceHugging Facecreativeml-openrail-mupdated 2y agoView on Hugging Face
77likes
Dockerfile90 linesDownload Raw Back to root
1FROM anchorxia/musev:latest2 3#MAINTAINER 维护者信息4LABEL MAINTAINER="zkangchen"5LABEL Email="zkangchen@tencent.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 23 24################################################# INSTALLING FFMPEG ##################################################25# RUN apt-get update ; apt-get install -y git build-essential gcc make yasm autoconf automake cmake libtool checkinstall libmp3lame-dev pkg-config libunwind-dev zlib1g-dev libssl-dev26 27# RUN apt-get update \28#     && apt-get clean \29#     && apt-get install -y --no-install-recommends libc6-dev libgdiplus wget software-properties-common30 31#RUN RUN apt-add-repository ppa:git-core/ppa && apt-get update && apt-get install -y git32 33# RUN wget https://www.ffmpeg.org/releases/ffmpeg-4.0.2.tar.gz34# RUN tar -xzf ffmpeg-4.0.2.tar.gz; rm -r ffmpeg-4.0.2.tar.gz35# RUN cd ./ffmpeg-4.0.2; ./configure --enable-gpl --enable-libmp3lame --enable-decoder=mjpeg,png --enable-encoder=png --enable-openssl --enable-nonfree36 37 38# RUN cd ./ffmpeg-4.0.2; make39# RUN  cd ./ffmpeg-4.0.2; make install40######################################################################################################################41 42RUN echo "docker start"\ 43  && whoami \44  && which python \45  && pwd46 47RUN git clone -b main --recursive https://github.com/TMElyralab/MuseTalk.git48 49RUN chmod -R 777 /home/user/app/MuseTalk50 51 52 53RUN . /opt/conda/etc/profile.d/conda.sh  \54    && echo "source activate musev" >> ~/.bashrc \55    && conda activate musev \56    && conda env list 57#    && conda install ffmpeg58 59RUN ffmpeg -codecs60 61 62 63 64 65WORKDIR /home/user/app/MuseTalk/66 67RUN pip install -r requirements.txt \68    && pip install --no-cache-dir -U openmim \69    && mim install mmengine \70    && mim install "mmcv>=2.0.1" \71    && mim install "mmdet>=3.1.0" \72    && mim install "mmpose>=1.1.0" 73 74 75# Add entrypoint script76#RUN chmod 777 ./entrypoint.sh77RUN ls -l  ./78 79EXPOSE 786080 81# CMD ["/bin/bash", "-c", "python app.py"]82CMD ["./install_ffmpeg.sh"]83CMD ["./entrypoint.sh"]84 85 86 87 88 89 90