Compare commits

...

3 Commits

Author SHA1 Message Date
501f2d0f92 feat(ai): add chromium, xvfb, fonts, and runtime libraries for headless browser automation 2026-05-20 14:29:45 -04:00
6e1c991bb7 feat: add emacs-nox to base ai/Dockerfile 2026-05-20 14:29:17 -04:00
d3f2e3b7b9 Merge pull request 'feat: add Syncthing service for Hermes org-file sync' (#30) from feat/syncthing-org-sync into master
Some checks failed
Build Hermes agent / build (push) Has been cancelled
Build ollama (gfx906) / build (push) Has been cancelled
Reviewed-on: #30
2026-05-19 00:28:59 +00:00

33
ai/Dockerfile Normal file
View File

@@ -0,0 +1,33 @@
FROM debian:13.4
# 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 \
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 (Python package manager)
COPY --from=ghcr.io/astral-sh/uv:latest /usr/local/bin/uv /usr/local/bin/uv
RUN uv --version
# Verify all expected tools are available
RUN curl --version && \
pdftotext -v 2>&1 | head -1 && \
pdfinfo -v 2>&1 | head -1 && \
pdftoppm -v 2>&1 | head -1 && \
convert --version | head -1 && \
identify --version | head -1 && \
chromium --version
CMD ["/bin/bash"]