Spaces:
Building
Building
Update Dockerfile
Browse files- Dockerfile +4 -5
Dockerfile
CHANGED
@@ -1,11 +1,10 @@
|
|
1 |
-
FROM
|
2 |
|
3 |
ENV DEBIAN_FRONTEND=noninteractive
|
4 |
|
5 |
-
# 安装 LXDE、TigerVNC
|
6 |
RUN apt-get update \
|
7 |
-
&& apt-get install -y
|
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 && (
|
|
|
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"
|