Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

Fix noVNC startup by removing netcat dependency

f-trycua09049096f494
diff --git a/libs/docker-xfce/Dockerfile b/libs/docker-xfce/Dockerfile
index d5459f31e5..2721d599de 100644
--- a/libs/docker-xfce/Dockerfile
+++ b/libs/docker-xfce/Dockerfile
@@ -36,6 +36,7 @@ RUN apt-get update && apt-get install -y \
python3-numpy \
git \
net-tools \
+ netcat \
supervisor \
# Computer-server dependencies
python3-tk \
diff --git a/libs/docker-xfce/src/scripts/start-novnc.sh b/libs/docker-xfce/src/scripts/start-novnc.sh
index 4f95c644b1..07894acb6a 100644
--- a/libs/docker-xfce/src/scripts/start-novnc.sh
+++ b/libs/docker-xfce/src/scripts/start-novnc.sh
@@ -1,12 +1,9 @@
#!/bin/bash
set -e
-# Wait for VNC server to be ready
+# Give VNC a moment to start (supervisor starts it with priority 10, this is priority 20)
echo "Waiting for VNC server to start..."
-while ! nc -z localhost ${VNC_PORT:-5901}; do
- sleep 1
-done
-echo "VNC server is ready"
+sleep 5
# Start noVNC
cd /opt/noVNC