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.

Add cua-bench-ui to Dockerfile.dev

Dillon DuPonte2334ff96c04
diff --git a/libs/xfce/Dockerfile.dev b/libs/xfce/Dockerfile.dev
index c24efaf9d7..0fe08eba1d 100644
--- a/libs/xfce/Dockerfile.dev
+++ b/libs/xfce/Dockerfile.dev
@@ -22,6 +22,20 @@ RUN apt-get update && apt-get install -y \
unzip \
zip \
xdg-utils \
+ gcc \
+ # Qt/XCB runtime deps for PyQt5 (libqxcb.so)
+ libxcb-icccm4 \
+ libxcb-image0 \
+ libxcb-keysyms1 \
+ libxcb-render-util0 \
+ libxcb-xinerama0 \
+ libxcb-shape0 \
+ libxcb-randr0 \
+ libxcb-xfixes0 \
+ libxcb-sync1 \
+ libxcb-util1 \
+ libxcb-cursor0 \
+ libxkbcommon-x11-0 \
# Desktop environment
xfce4 \
xfce4-terminal \
@@ -51,6 +65,7 @@ RUN apt-get update && apt-get install -y \
libssl-dev \
libsqlite3-dev \
tk-dev \
+ libgl1-mesa-dev \
libgdbm-dev \
libc6-dev \
libbz2-dev \
@@ -109,6 +124,10 @@ COPY python/computer-server /tmp/computer-server
RUN python3.12 -m pip install /tmp/computer-server && \
rm -rf /tmp/computer-server
+# Install PyQt6 and pywebview, used by cua-bench for web UIs
+RUN python3.12 -m pip install "pywebview[qt]"
+RUN python3.12 -m pip install cua-bench-ui>=0.6.0 --no-cache-dir
+
# Install playwright and Firefox dependencies
RUN python3.12 -m pip install playwright && \
python3.12 -m playwright install --with-deps firefox