Spaces:
Runtime error
Runtime error
File size: 2,384 Bytes
dc205e7 cdee5b8 dc205e7 cdee5b8 dc205e7 e7921dd 6d7e835 e7921dd 6d7e835 e7921dd 6d7e835 e7921dd 6d7e835 e7921dd dc205e7 728ead8 cdee5b8 387ef69 728ead8 e93de90 0cbbb23 6571bfa eef39d3 0cbbb23 723a3ee cdee5b8 c279a9c cdee5b8 dc205e7 4fc5577 dc205e7 1a80aee dc205e7 cdee5b8 |
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 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 |
FROM anchorxia/musev:latest
#MAINTAINER 维护者信息
LABEL MAINTAINER="zkangchen"
LABEL Email="[email protected]"
LABEL Description="musev gradio image, from docker pull anchorxia/musev:latest"
SHELL ["/bin/bash", "--login", "-c"]
# Set up a new user named "user" with user ID 1000
RUN useradd -m -u 1000 user
# Switch to the "user" user
USER user
# Set home to the user's home directory
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH
# Set the working directory to the user's home directory
WORKDIR $HOME/app
################################################# INSTALLING FFMPEG ##################################################
# 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-dev
# RUN apt-get update \
# && apt-get clean \
# && apt-get install -y --no-install-recommends libc6-dev libgdiplus wget software-properties-common
#RUN RUN apt-add-repository ppa:git-core/ppa && apt-get update && apt-get install -y git
# RUN wget https://www.ffmpeg.org/releases/ffmpeg-4.0.2.tar.gz
# RUN tar -xzf ffmpeg-4.0.2.tar.gz; rm -r ffmpeg-4.0.2.tar.gz
# RUN cd ./ffmpeg-4.0.2; ./configure --enable-gpl --enable-libmp3lame --enable-decoder=mjpeg,png --enable-encoder=png --enable-openssl --enable-nonfree
# RUN cd ./ffmpeg-4.0.2; make
# RUN cd ./ffmpeg-4.0.2; make install
######################################################################################################################
RUN echo "docker start"\
&& whoami \
&& which python \
&& pwd
RUN git clone -b main --recursive https://github.com/TMElyralab/MuseTalk.git
RUN chmod -R 777 /home/user/app/MuseTalk
RUN . /opt/conda/etc/profile.d/conda.sh \
&& echo "source activate musev" >> ~/.bashrc \
&& conda activate musev \
&& conda env list
# && conda install ffmpeg
RUN ffmpeg -codecs
WORKDIR /home/user/app/MuseTalk/
RUN pip install -r requirements.txt \
&& pip install --no-cache-dir -U openmim \
&& mim install mmengine \
&& mim install "mmcv>=2.0.1" \
&& mim install "mmdet>=3.1.0" \
&& mim install "mmpose>=1.1.0"
# Add entrypoint script
#RUN chmod 777 ./entrypoint.sh
RUN ls -l ./
EXPOSE 7860
# CMD ["/bin/bash", "-c", "python app.py"]
CMD ["./install_ffmpeg.sh"]
CMD ["./entrypoint.sh"]
|