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 <noreply@anthropic.com>
This commit is contained in:
parent
b4ff6af84d
commit
d230cffb5f
25
Dockerfile
25
Dockerfile
|
|
@ -18,18 +18,19 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||||
firefox-esr \
|
firefox-esr \
|
||||||
# xdg-open for opening URLs (used by Claude CLI)
|
# xdg-open for opening URLs (used by Claude CLI)
|
||||||
xdg-utils \
|
xdg-utils \
|
||||||
# X11, OpenGL, and Qt/PySide6 dependencies
|
# Qt/PySide6 dependencies (complete set)
|
||||||
libx11-6 \
|
|
||||||
libxext6 \
|
|
||||||
libxrender1 \
|
|
||||||
libgl1 \
|
libgl1 \
|
||||||
libegl1 \
|
libegl1 \
|
||||||
libxkbcommon0 \
|
libglib2.0-0 \
|
||||||
libdbus-1-3 \
|
|
||||||
libfontconfig1 \
|
libfontconfig1 \
|
||||||
libfreetype6 \
|
libfreetype6 \
|
||||||
|
libx11-6 \
|
||||||
|
libx11-xcb1 \
|
||||||
|
libxext6 \
|
||||||
|
libxrender1 \
|
||||||
libxcb1 \
|
libxcb1 \
|
||||||
libxcb-cursor0 \
|
libxcb-cursor0 \
|
||||||
|
libxcb-glx0 \
|
||||||
libxcb-icccm4 \
|
libxcb-icccm4 \
|
||||||
libxcb-image0 \
|
libxcb-image0 \
|
||||||
libxcb-keysyms1 \
|
libxcb-keysyms1 \
|
||||||
|
|
@ -42,6 +43,18 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||||
libxcb-xfixes0 \
|
libxcb-xfixes0 \
|
||||||
libxcb-xinerama0 \
|
libxcb-xinerama0 \
|
||||||
libxcb-xkb1 \
|
libxcb-xkb1 \
|
||||||
|
libxkbcommon0 \
|
||||||
|
libxkbcommon-x11-0 \
|
||||||
|
libxkbfile1 \
|
||||||
|
libdbus-1-3 \
|
||||||
|
libxcomposite1 \
|
||||||
|
libxdamage1 \
|
||||||
|
libxi6 \
|
||||||
|
libxrandr2 \
|
||||||
|
libxtst6 \
|
||||||
|
libnss3 \
|
||||||
|
libasound2 \
|
||||||
|
libpulse0 \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# Set working directory
|
# Set working directory
|
||||||
|
|
|
||||||
|
|
@ -36,21 +36,25 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||||
curl \
|
curl \
|
||||||
vim \
|
vim \
|
||||||
less \
|
less \
|
||||||
|
# Node.js for opencode
|
||||||
|
nodejs \
|
||||||
|
npm \
|
||||||
# For providers that need browser auth
|
# For providers that need browser auth
|
||||||
firefox \
|
firefox \
|
||||||
xdg-utils \
|
xdg-utils \
|
||||||
# X11, OpenGL, and Qt/PySide6 dependencies
|
# Qt/PySide6 dependencies (complete set)
|
||||||
libx11-6 \
|
|
||||||
libxext6 \
|
|
||||||
libxrender1 \
|
|
||||||
libgl1 \
|
libgl1 \
|
||||||
libegl1 \
|
libegl1 \
|
||||||
libxkbcommon0 \
|
libglib2.0-0 \
|
||||||
libdbus-1-3 \
|
|
||||||
libfontconfig1 \
|
libfontconfig1 \
|
||||||
libfreetype6 \
|
libfreetype6 \
|
||||||
|
libx11-6 \
|
||||||
|
libx11-xcb1 \
|
||||||
|
libxext6 \
|
||||||
|
libxrender1 \
|
||||||
libxcb1 \
|
libxcb1 \
|
||||||
libxcb-cursor0 \
|
libxcb-cursor0 \
|
||||||
|
libxcb-glx0 \
|
||||||
libxcb-icccm4 \
|
libxcb-icccm4 \
|
||||||
libxcb-image0 \
|
libxcb-image0 \
|
||||||
libxcb-keysyms1 \
|
libxcb-keysyms1 \
|
||||||
|
|
@ -63,8 +67,23 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||||
libxcb-xfixes0 \
|
libxcb-xfixes0 \
|
||||||
libxcb-xinerama0 \
|
libxcb-xinerama0 \
|
||||||
libxcb-xkb1 \
|
libxcb-xkb1 \
|
||||||
|
libxkbcommon0 \
|
||||||
|
libxkbcommon-x11-0 \
|
||||||
|
libxkbfile1 \
|
||||||
|
libdbus-1-3 \
|
||||||
|
libxcomposite1 \
|
||||||
|
libxdamage1 \
|
||||||
|
libxi6 \
|
||||||
|
libxrandr2 \
|
||||||
|
libxtst6 \
|
||||||
|
libnss3 \
|
||||||
|
libasound2 \
|
||||||
|
libpulse0 \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
# Install opencode (free AI coding assistant)
|
||||||
|
RUN npm install -g opencode-ai@latest
|
||||||
|
|
||||||
# Create a non-root user
|
# Create a non-root user
|
||||||
RUN useradd -m -s /bin/bash user
|
RUN useradd -m -s /bin/bash user
|
||||||
USER user
|
USER user
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue