BG5 commited on
Commit
e843ed0
·
verified ·
1 Parent(s): be96286

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +16 -1
Dockerfile CHANGED
@@ -8,7 +8,22 @@ WORKDIR /code
8
  COPY . .
9
  EXPOSE 7860
10
  RUN rm -rf /var/lib/apt/lists/*
11
- RUN chmod +x webmininstall.sh
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
  RUN sh webmininstall.sh
13
  RUN apt-get update
14
  # 安装所需的软件包并清理APT缓存
 
8
  COPY . .
9
  EXPOSE 7860
10
  RUN rm -rf /var/lib/apt/lists/*
11
+ # 安装必要的工具
12
+ RUN apt-get update && \
13
+ apt-get install -y wget gnupg && \
14
+ rm -rf /var/lib/apt/lists/*
15
+
16
+ # 添加 Webmin 的 GPG 密钥
17
+ RUN wget https://download.webmin.com/jcameron-key.asc && \
18
+ apt-key add jcameron-key.asc
19
+
20
+ # 添加 Webmin 的源
21
+ RUN echo "deb https://download.webmin.com/download/repository sarge contrib" >> /etc/apt/sources.list.d/webmin.list
22
+
23
+ # 更新包列表并安装 Webmin
24
+ RUN apt-get update && \
25
+ apt-get install -y webmin && \
26
+
27
  RUN sh webmininstall.sh
28
  RUN apt-get update
29
  # 安装所需的软件包并清理APT缓存