CoolFace
Apppublic

coder160/demos

sourceHugging Faceupdated 3y agoView on Hugging Face
0likes
Dockerfile28 linesDownload Raw Back to root
1FROM nvidia/cuda:11.7.1-cudnn8-runtime-ubuntu20.042 3ENV DEBIAN_FRONTEND=noninteractive4RUN apt update && \5    apt install -y bash \6                   build-essential \7                   git \8                   git-lfs \9                   curl \10                   ca-certificates \11                   libsndfile1-dev \12                   libgl1 \13                   python3.8 \14                   python3-pip \15                   python3.8-venv && \16    rm -rf /var/lib/apt/lists17WORKDIR /code18COPY ./requirements.txt /code/requirements.txt19RUN python3 -m pip install --no-cache-dir --upgrade pip && \20    python3 -m pip install --no-cache-dir --upgrade -r /code/requirements.txt21RUN useradd -m -u 1000 user22USER user23ENV HOME=/home/user \24	PATH=/home/user/.local/bin:$PATH25WORKDIR $HOME/server26COPY --chown=user . $HOME/server27 28CMD ["uvicorn", "api.main:api", "--host", "0.0.0.0", "--port", "7860"]