You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
SadTalker/Dockerfile

28 lines
896 B
Docker

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# 基于Miniconda3镜像
FROM continuumio/miniconda3
# 设置工作目录
WORKDIR /SadTalker
# 复制项目文件到容器中
COPY . /SadTalker
# 创建并激活Conda环境安装必要的依赖
RUN conda create --name sadtalker python=3.8 -y && \
echo "source activate sadtalker" > ~/.bashrc && \
apt-get update && \
apt-get install -y libgl1-mesa-glx && \
apt-get install -y build-essential gfortran libatlas-base-dev libblas-dev liblapack-dev libffi-dev libssl-dev && \
apt-get install -y ffmpeg
RUN pip install torch==2.1.2+cu118 torchaudio==2.1.2+cu118 torchvision==0.16.2+cu118 -f https://download.pytorch.org/whl/torch_stable.html -i https://pypi.tuna.tsinghua.edu.cn/simple
RUN pip install tb-nightly
RUN pip install basicsr==1.4.2 -i https://pypi.tuna.tsinghua.edu.cn/simple
RUN pip install -r requirements.txt
EXPOSE 8000
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000"]