Download Dockerfile from junaid-simamdigital/Extend3D: direct link, hf CLI and curl.
- Browser
- Download file 840 Bytes
-
https://huggingface.co/spaces/junaid-simamdigital/Extend3D/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/junaid-simamdigital/Extend3D/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/junaid-simamdigital/Extend3D/resolve/main/Dockerfile
840 Bytes
| FROM nvidia/cuda:12.4.1-cudnn-devel-ubuntu22.04 | |
| ENV DEBIAN_FRONTEND=noninteractive | |
| ENV PYTHONUNBUFFERED=1 | |
| ENV GRADIO_SERVER_NAME=0.0.0.0 | |
| ENV GRADIO_SERVER_PORT=7860 | |
| ENV HF_HOME=/home/user/.cache/huggingface | |
| ENV TORCH_HOME=/home/user/.cache/torch | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| python3.10 \ | |
| python3.10-venv \ | |
| python3-pip \ | |
| git \ | |
| ffmpeg \ | |
| libgl1 \ | |
| libglib2.0-0 \ | |
| build-essential \ | |
| ninja-build \ | |
| && rm -rf /var/lib/apt/lists/* | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| ENV HOME=/home/user | |
| ENV PATH=/home/user/.local/bin:$PATH | |
| WORKDIR /home/user/app | |
| COPY --chown=user . /home/user/app | |
| RUN python3.10 -m pip install --user --upgrade pip setuptools wheel | |
| RUN python3.10 -m pip install --user --no-cache-dir -r requirements.txt | |
| EXPOSE 7860 | |
| CMD ["python3.10", "app.py"] |