|
FROM anchorxia/musev:latest |
|
|
|
|
|
LABEL MAINTAINER="zkangchen" |
|
LABEL Email="[email protected]" |
|
LABEL Description="musev gradio image, from docker pull anchorxia/musev:latest" |
|
|
|
SHELL ["/bin/bash", "--login", "-c"] |
|
|
|
|
|
RUN useradd -m -u 1000 user |
|
|
|
|
|
USER user |
|
|
|
|
|
ENV HOME=/home/user \ |
|
PATH=/home/user/.local/bin:$PATH |
|
|
|
|
|
WORKDIR $HOME/app |
|
|
|
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 |
|
&& 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" \ |
|
|
|
WORKDIR /home/user/app/MuseTalk/ |
|
|
|
|
|
COPY --chown=user entrypoint.sh ./entrypoint.sh |
|
RUN chmod +x ./entrypoint.sh |
|
RUN ls -l ./ |
|
|
|
EXPOSE 7860 |
|
|
|
|
|
CMD ["./entrypoint.sh"] |
|
|
|
|
|
|
|
|
|
|
|
|
|
|