Spaces:
Paused
Paused
Download Dockerfile from MildredRWilliamson/linux: direct link, hf CLI and curl.
- Browser
- Download file 713 Bytes
-
https://huggingface.co/spaces/MildredRWilliamson/linux/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/MildredRWilliamson/linux/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/MildredRWilliamson/linux/resolve/main/Dockerfile
713 Bytes
| # 使用官方Ubuntu作为基础镜像 | |
| FROM ubuntu:latest | |
| # 设置环境变量 | |
| ENV AUTH_TOKEN="" | |
| ENV TAILSCALE_AUTH_KEY="" | |
| # 安装必要工具 | |
| RUN apt-get update && \ | |
| apt-get install -y \ | |
| curl \ | |
| wget \ | |
| sudo \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # 安装cloudflared | |
| RUN wget https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64.deb && \ | |
| dpkg -i cloudflared-linux-amd64.deb && \ | |
| rm cloudflared-linux-amd64.deb | |
| # 安装Tailscale | |
| RUN curl -fsSL https://tailscale.com/install.sh | sh | |
| # 设置启动脚本 | |
| COPY start.sh /usr/local/bin/start.sh | |
| RUN chmod +x /usr/local/bin/start.sh | |
| # 设置容器启动时执行的命令 | |
| CMD ["/usr/local/bin/start.sh"] |