Spaces:
Paused

MildredRWilliamson commited on
Commit
6c93640
·
verified ·
1 Parent(s): 0aff73c

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +29 -0
Dockerfile ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # 使用官方Ubuntu作为基础镜像
2
+ FROM ubuntu:latest
3
+
4
+ # 设置环境变量
5
+ ENV AUTH_TOKEN=""
6
+ ENV TAILSCALE_AUTH_KEY=""
7
+
8
+ # 安装必要工具
9
+ RUN apt-get update && \
10
+ apt-get install -y \
11
+ curl \
12
+ wget \
13
+ sudo \
14
+ && rm -rf /var/lib/apt/lists/*
15
+
16
+ # 安装cloudflared
17
+ RUN wget https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-amd64.deb && \
18
+ dpkg -i cloudflared-linux-amd64.deb && \
19
+ rm cloudflared-linux-amd64.deb
20
+
21
+ # 安装Tailscale
22
+ RUN curl -fsSL https://tailscale.com/install.sh | sh
23
+
24
+ # 设置启动脚本
25
+ COPY start.sh /usr/local/bin/start.sh
26
+ RUN chmod +x /usr/local/bin/start.sh
27
+
28
+ # 设置容器启动时执行的命令
29
+ CMD ["/usr/local/bin/start.sh"]