CoolFace
Apppublic

cnywt/SyncTalk

sourceHugging Facemitupdated 2y agoView on Hugging Face
0likes
Dockerfile55 linesDownload Raw Back to root
1FROM nvidia/cuda:11.3.1-cudnn8-devel-ubuntu18.042FROM python:3.8.83 4 5ARG DEBIAN_FRONTEND=noninteractive6 7ENV PYTHONUNBUFFERED=18 9RUN apt-get update && apt-get install --no-install-recommends -y \10  build-essential \11  python3-pip \12  git \13  portaudio19-dev \14  ffmpeg \15  && apt-get clean && rm -rf /var/lib/apt/lists/*16 17WORKDIR /code18 19COPY ./requirements.txt /code/requirements.txt20 21# Set up a new user named "user" with user ID 100022RUN useradd -m -u 1000 user23# Switch to the "user" user24USER user25 26ENV CUDA_HOME=/home/user/local/cuda-11.3.127# Set home to the user's home directory28ENV HOME=/home/user \29	PATH=/home/user/.local/bin:$PATH \30    PYTHONPATH=$HOME/app \31	PYTHONUNBUFFERED=1 \32	GRADIO_ALLOW_FLAGGING=never \33	GRADIO_NUM_PORTS=1 \34	GRADIO_SERVER_NAME=0.0.0.0 \35	GRADIO_THEME=huggingface \36	SYSTEM=spaces37 38 39 40RUN pip3 install --no-cache-dir -U torch==1.12.1+cu113 torchvision==0.13.1+cu113 torchaudio==0.12.1 --extra-index-url https://download.pytorch.org/whl/cu11341RUN pip3 install --no-cache-dir --upgrade -r /code/requirements.txt42RUN pip3 install --no-index --no-cache-dir pytorch3d -f https://dl.fbaipublicfiles.com/pytorch3d/packaging/wheels/py38_cu113_pyt1121/download.html43RUN pip3 install tensorflow-gpu==2.8.144 45WORKDIR /code46RUN pip3 install ./freqencoder47RUN pip3 install ./shencoder48RUN pip3 install ./gridencoder49RUN pip3 install ./raymarching50# Set the working directory to the user's home directory51WORKDIR $HOME/app52# Copy the current directory contents into the container at $HOME/app setting the owner to the user53COPY --chown=user . $HOME/app54 55CMD ["python3", "app.py"]