Spaces:
Paused
Paused
File size: 713 Bytes
6c93640 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | # 使用官方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"] |