Download Dockerfile from qeqwe15/webssh: direct link, hf CLI and curl.
- Browser
- Download file 387 Bytes
-
https://huggingface.co/spaces/qeqwe15/webssh/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/qeqwe15/webssh/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/qeqwe15/webssh/resolve/main/Dockerfile
387 Bytes
| # 使用官方的 Golang 镜像作为基础镜像 | |
| FROM golang:1.18 | |
| # 设置工作目录 | |
| WORKDIR /app | |
| # 克隆 GitHub 仓库 | |
| RUN git clone https://github.com/Jrohy/webssh.git . | |
| # 编译 Go 程序 | |
| RUN go build -o webssh . | |
| # 声明服务运行的端口(根据实际需要修改,例如项目文档中默认是8888) | |
| EXPOSE 8888 | |
| # 运行编译后的二进制文件 | |
| CMD ["./webssh"] |