dongsiqie commited on
Commit
3144a50
1 Parent(s): aac5542

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +23 -0
Dockerfile ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM ubuntu:latest
2
+
3
+ # 安装 git 和 go
4
+ RUN apt-get update && apt-get install -y
5
+ git
6
+ golang
7
+ && rm -rf /var/lib/apt/lists/*
8
+
9
+ # 设置工作目录
10
+ WORKDIR /
11
+
12
+ # 克隆 aurora 仓库
13
+ RUN git clone https://github.com/renqabs/aa /aurora
14
+
15
+ # 切换到 aurora 文件夹并构建项目
16
+ WORKDIR /aurora
17
+ RUN go build -o aurora
18
+
19
+ # 调整可执行权限
20
+ RUN chmod +x ./aurora
21
+
22
+ # 执行 aurora
23
+ CMD ["./aurora"]