xibalami commited on
Commit
facddf2
·
verified ·
1 Parent(s): a2d5937

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +23 -0
Dockerfile ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # 步骤 1: 选择基础镜像
2
+ FROM debian:bullseye-slim
3
+
4
+ # 步骤 2: 设置工作目录
5
+ WORKDIR /app
6
+
7
+ # 步骤 3: 复制文件
8
+ # 复制您的64位Linux可执行文件,并重命名
9
+ COPY ./tgsou-go-linux_amd64 ./tgsou-go
10
+ # 复制启动脚本
11
+ COPY ./start.sh ./start.sh
12
+
13
+ # 步骤 4: 添加可执行权限
14
+ RUN chmod +x ./tgsou-go
15
+ RUN chmod +x ./start.sh
16
+
17
+ # 步骤 5: 声明应用端口
18
+ # 告诉 Docker 容器内的应用将监听 9999 端口
19
+ EXPOSE 9999
20
+
21
+ # 步骤 6: 定义启动命令
22
+ # 使用启动脚本来启动应用
23
+ CMD ["./start.sh"]