Download Dockerfile from CosmoHQ/mtest4: direct link, hf CLI and curl.
- Browser
- Download file 540 Bytes
-
https://huggingface.co/spaces/CosmoHQ/mtest4/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/CosmoHQ/mtest4/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/CosmoHQ/mtest4/resolve/main/Dockerfile
540 Bytes
| FROM debian:bookworm | |
| # Install dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| wget \ | |
| curl \ | |
| git \ | |
| bash \ | |
| openssh-client | |
| # Download GoTTY | |
| RUN wget https://github.com/yudai/gotty/releases/download/v1.0.1/gotty_linux_amd64.tar.gz && \ | |
| tar -xzf gotty_linux_amd64.tar.gz && \ | |
| mv gotty /usr/local/bin/ && \ | |
| rm gotty_linux_amd64.tar.gz | |
| # Expose port | |
| EXPOSE 7860 | |
| # Run gotty with writable bash (allow all origins, no credentials for demo) | |
| CMD ["gotty", "-w", "-p", "7860", "--permit-write", "/bin/bash"] |