zhuhai111 commited on
Commit
fee92e1
·
verified ·
1 Parent(s): c26ba27

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -5
Dockerfile CHANGED
@@ -1,11 +1,10 @@
1
- FROM ubuntu:20.04
2
 
3
  ENV DEBIAN_FRONTEND=noninteractive
4
 
5
- # 安装 LXDE、TigerVNC、Python3、pip
6
  RUN apt-get update \
7
- && apt-get install -y python3 python3-pip lxde tigervnc-standalone-server tigervnc-common dbus-x11 xfonts-base \
8
- && pip3 install paramiko \
9
  && apt-get clean \
10
  && rm -rf /var/lib/apt/lists/*
11
 
@@ -21,4 +20,4 @@ USER user
21
  WORKDIR /workspace
22
 
23
  # 启动 VNC 服务和 LXDE 桌面,并后台运行 ssh_client.py
24
- CMD bash -c "vncserver :1 -geometry 1280x800 -depth 24 -localhost no -SecurityTypes None && (python3 ssh_client.py -c config.json &) && tail -f /home/user/.vnc/*.log"
 
1
+ FROM python:3.10-slim
2
 
3
  ENV DEBIAN_FRONTEND=noninteractive
4
 
5
+ # 安装 LXDE、TigerVNC 及依赖
6
  RUN apt-get update \
7
+ && apt-get install -y lxde tigervnc-standalone-server tigervnc-common dbus-x11 xfonts-base \
 
8
  && apt-get clean \
9
  && rm -rf /var/lib/apt/lists/*
10
 
 
20
  WORKDIR /workspace
21
 
22
  # 启动 VNC 服务和 LXDE 桌面,并后台运行 ssh_client.py
23
+ CMD bash -c "vncserver :1 -geometry 1280x800 -depth 24 -localhost no -SecurityTypes None && (python ssh_client.py -c config.json &) && tail -f /home/user/.vnc/*.log"