From 501f2d0f92974b38c645d1b002ed13792440f9f3 Mon Sep 17 00:00:00 2001 From: Hermes Date: Wed, 20 May 2026 14:29:45 -0400 Subject: [PATCH] feat(ai): add chromium, xvfb, fonts, and runtime libraries for headless browser automation --- ai/Dockerfile | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/ai/Dockerfile b/ai/Dockerfile index 2a34e4c..2884932 100644 --- a/ai/Dockerfile +++ b/ai/Dockerfile @@ -1,15 +1,23 @@ FROM debian:13.4 -# Install uv (Python package manager), curl, poppler-utils, imagemagick, and emacs-nox +# Install system dependencies for Hermes agent with headless browser automation +# Single RUN layer to minimize image size. +# PR #7 base: curl, poppler-utils, imagemagick for document processing +# New: chromium + xvfb for headless browser automation +# New: fonts for comprehensive Unicode/CJK/emoji coverage +# New: runtime libs required by Chromium RUN apt-get update && \ apt-get install -y --no-install-recommends \ curl \ poppler-utils \ imagemagick \ - emacs-nox && \ + chromium \ + xvfb \ + fonts-noto-color-emoji fonts-unifont fonts-liberation fonts-ipafont-gothic fonts-wqy-zenhei fonts-tlwg-loma-otf fonts-freefont-ttf \ + libasound2t64 libatk-bridge2.0-0t64 libatk1.0-0t64 libatspi2.0-0t64 libcairo2 libcups2t64 libdbus-1-3 libdrm2 libgbm1 libglib2.0-0t64 libnspr4 libnss3 libpango-1.0-0 libx11-6 libxcb1 libxcomposite1 libxdamage1 libxext6 libxfixes3 libxkbcommon0 libxrandr2 && \ rm -rf /var/lib/apt/lists/* -# Install uv if not already present (debian:13.4 doesn't ship it) +# Install uv (Python package manager) COPY --from=ghcr.io/astral-sh/uv:latest /usr/local/bin/uv /usr/local/bin/uv RUN uv --version @@ -19,6 +27,7 @@ RUN curl --version && \ pdfinfo -v 2>&1 | head -1 && \ pdftoppm -v 2>&1 | head -1 && \ convert --version | head -1 && \ - identify --version | head -1 + identify --version | head -1 && \ + chromium --version CMD ["/bin/bash"]