From d230cffb5ff54d52500699bec4a656bc99a76955 Mon Sep 17 00:00:00 2001 From: rob Date: Sun, 18 Jan 2026 04:38:46 -0400 Subject: [PATCH] Add complete Qt/PySide6 deps and opencode to Docker images - Add all required Qt libraries (glib, xcb, xkb, nss, etc.) - Install opencode-ai via npm in ready container - Add nodejs/npm for opencode support Co-Authored-By: Claude Opus 4.5 --- Dockerfile | 25 +++++++++++++++++++------ Dockerfile.ready | 31 +++++++++++++++++++++++++------ 2 files changed, 44 insertions(+), 12 deletions(-) diff --git a/Dockerfile b/Dockerfile index dfb2bcc..f3ee12e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,18 +18,19 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ firefox-esr \ # xdg-open for opening URLs (used by Claude CLI) xdg-utils \ - # X11, OpenGL, and Qt/PySide6 dependencies - libx11-6 \ - libxext6 \ - libxrender1 \ + # Qt/PySide6 dependencies (complete set) libgl1 \ libegl1 \ - libxkbcommon0 \ - libdbus-1-3 \ + libglib2.0-0 \ libfontconfig1 \ libfreetype6 \ + libx11-6 \ + libx11-xcb1 \ + libxext6 \ + libxrender1 \ libxcb1 \ libxcb-cursor0 \ + libxcb-glx0 \ libxcb-icccm4 \ libxcb-image0 \ libxcb-keysyms1 \ @@ -42,6 +43,18 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ libxcb-xfixes0 \ libxcb-xinerama0 \ libxcb-xkb1 \ + libxkbcommon0 \ + libxkbcommon-x11-0 \ + libxkbfile1 \ + libdbus-1-3 \ + libxcomposite1 \ + libxdamage1 \ + libxi6 \ + libxrandr2 \ + libxtst6 \ + libnss3 \ + libasound2 \ + libpulse0 \ && rm -rf /var/lib/apt/lists/* # Set working directory diff --git a/Dockerfile.ready b/Dockerfile.ready index 5ace0e0..b1ac45d 100644 --- a/Dockerfile.ready +++ b/Dockerfile.ready @@ -36,21 +36,25 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ curl \ vim \ less \ + # Node.js for opencode + nodejs \ + npm \ # For providers that need browser auth firefox \ xdg-utils \ - # X11, OpenGL, and Qt/PySide6 dependencies - libx11-6 \ - libxext6 \ - libxrender1 \ + # Qt/PySide6 dependencies (complete set) libgl1 \ libegl1 \ - libxkbcommon0 \ - libdbus-1-3 \ + libglib2.0-0 \ libfontconfig1 \ libfreetype6 \ + libx11-6 \ + libx11-xcb1 \ + libxext6 \ + libxrender1 \ libxcb1 \ libxcb-cursor0 \ + libxcb-glx0 \ libxcb-icccm4 \ libxcb-image0 \ libxcb-keysyms1 \ @@ -63,8 +67,23 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ libxcb-xfixes0 \ libxcb-xinerama0 \ libxcb-xkb1 \ + libxkbcommon0 \ + libxkbcommon-x11-0 \ + libxkbfile1 \ + libdbus-1-3 \ + libxcomposite1 \ + libxdamage1 \ + libxi6 \ + libxrandr2 \ + libxtst6 \ + libnss3 \ + libasound2 \ + libpulse0 \ && rm -rf /var/lib/apt/lists/* +# Install opencode (free AI coding assistant) +RUN npm install -g opencode-ai@latest + # Create a non-root user RUN useradd -m -s /bin/bash user USER user