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

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -1
Dockerfile CHANGED
@@ -4,10 +4,16 @@ FROM ubuntu:latest
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
 
 
4
  # 更新包列表并安装必要的软件包
5
  RUN apt-get update && apt-get install -y \
6
  bash \
7
+ wget \
8
+ ca-certificates \
9
  && apt-get clean \
10
  && rm -rf /var/lib/apt/lists/*
11
 
12
+ # 下载并安装 gotty
13
+ RUN wget -O /usr/local/bin/gotty https://github.com/yudai/gotty/releases/download/v1.0.1/gotty_linux_amd64.tar.gz \
14
+ && tar -xzvf /usr/local/bin/gotty -C /usr/local/bin/ \
15
+ && chmod +x /usr/local/bin/gotty
16
+
17
  # 暴露端口
18
  EXPOSE 8080
19