Download Dockerfile from vidbye/TermX: direct link, hf CLI and curl.
- Browser
- Download file 536 Bytes
-
https://huggingface.co/spaces/vidbye/TermX/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/vidbye/TermX/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/vidbye/TermX/resolve/main/Dockerfile
536 Bytes
| FROM ubuntu:22.04 | |
| ENV DEBIAN_FRONTEND=noninteractive | |
| ENV HF_HOME=/app/.cache | |
| RUN apt-get update && apt-get install -y \ | |
| python3 \ | |
| python3-pip \ | |
| git \ | |
| nodejs \ | |
| npm \ | |
| sudo \ | |
| curl \ | |
| && rm -rf /var/lib/apt/lists/* | |
| RUN apt-get update | |
| RUN pip3 install --no-cache-dir fastapi uvicorn huggingface_hub watchdog python-multipart | |
| RUN pip3 install --no-cache-dir python-multipart | |
| WORKDIR /app | |
| COPY . . | |
| RUN chmod 777 /app | |
| RUN chmod +x ./start.sh | |
| RUN chmod +x ./hf_sync.sh | |
| EXPOSE 7860 | |
| CMD ["bash", "./start.sh"] |