coteerratu commited on
Commit
165d312
·
verified ·
1 Parent(s): b15fb87

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +15 -0
Dockerfile ADDED
@@ -0,0 +1,15 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # 使用Ubuntu作为基础镜像
2
+ FROM ubuntu:latest
3
+
4
+ # 更新包列表并安装必要的软件包
5
+ RUN apt-get update && apt-get install -y \
6
+ bash \
7
+ gotty \
8
+ && apt-get clean \
9
+ && rm -rf /var/lib/apt/lists/*
10
+
11
+ # 暴露端口
12
+ EXPOSE 8080
13
+
14
+ # 使用gotty运行bash
15
+ CMD ["gotty", "--permit-write", "/bin/bash"]