Download Dockerfile from Spanicin/ttv: direct link, hf CLI and curl.
- Browser
- Download file 447 Bytes
-
https://huggingface.co/spaces/Spanicin/ttv/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Spanicin/ttv/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Spanicin/ttv/resolve/main/Dockerfile
447 Bytes
| FROM python:3.9.13 | |
| USER root | |
| RUN apt-get update && \ | |
| apt-get install -y --no-install-recommends \ | |
| libgl1-mesa-glx \ | |
| && \ | |
| rm -rf /var/lib/apt/lists/* | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV HOME=/home/user \ | |
| PATH=/home/user/.local/bin:$PATH | |
| WORKDIR $HOME/app | |
| COPY --chown=user . $HOME/app | |
| ENV NUMBA_CACHE_DIR=/tmp/numba_cache | |
| RUN pip install -r requirements.txt | |
| CMD ["gunicorn", "-b", "0.0.0.0:7860","app:app"] |