Download Dockerfile from muyingya/test: direct link, hf CLI and curl.
- Browser
- Download file 356 Bytes
-
https://huggingface.co/spaces/muyingya/test/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/muyingya/test/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/muyingya/test/resolve/main/Dockerfile
356 Bytes
| FROM ubuntu:22.04 | |
| ENV DEBIAN_FRONTEND=noninteractive | |
| RUN apt-get update && apt-get install -y ttyd sudo curl wget git iproute2 net-tools iputils-ping htop tmux && rm -rf /var/lib/apt/lists/* | |
| RUN useradd -m -u 1000 ubuntu && echo "ubuntu ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers | |
| USER ubuntu | |
| WORKDIR /home/ubuntu | |
| EXPOSE 7860 | |
| CMD ["ttyd", "-p", "7860", "bash"] |