Download Dockerfile from New-Bing/vps: direct link, hf CLI and curl.
- Browser
- Download file 397 Bytes
-
https://huggingface.co/spaces/New-Bing/vps/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/New-Bing/vps/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/New-Bing/vps/resolve/main/Dockerfile
397 Bytes
| # 使用 Ubuntu 22.04 作为基础镜像 | |
| FROM ubuntu:22.04 | |
| # 安装 Shellinabox | |
| RUN apt-get update && \ | |
| apt-get install -y shellinabox && \ | |
| apt-get clean && \ | |
| rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* | |
| # 设置 root 用户的密码为 'root' | |
| RUN echo 'root:123456' | chpasswd | |
| # 暴露 22 端口 | |
| EXPOSE 22 | |
| # 启动 Shellinabox | |
| CMD ["/usr/bin/shellinaboxd", "-t", "-s", "/:LOGIN"] |