feat(ai): add chromium, xvfb, fonts, and runtime libraries for headless browser automation
This commit is contained in:
@@ -1,15 +1,23 @@
|
|||||||
FROM debian:13.4
|
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 && \
|
RUN apt-get update && \
|
||||||
apt-get install -y --no-install-recommends \
|
apt-get install -y --no-install-recommends \
|
||||||
curl \
|
curl \
|
||||||
poppler-utils \
|
poppler-utils \
|
||||||
imagemagick \
|
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/*
|
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
|
COPY --from=ghcr.io/astral-sh/uv:latest /usr/local/bin/uv /usr/local/bin/uv
|
||||||
RUN uv --version
|
RUN uv --version
|
||||||
|
|
||||||
@@ -19,6 +27,7 @@ RUN curl --version && \
|
|||||||
pdfinfo -v 2>&1 | head -1 && \
|
pdfinfo -v 2>&1 | head -1 && \
|
||||||
pdftoppm -v 2>&1 | head -1 && \
|
pdftoppm -v 2>&1 | head -1 && \
|
||||||
convert --version | head -1 && \
|
convert --version | head -1 && \
|
||||||
identify --version | head -1
|
identify --version | head -1 && \
|
||||||
|
chromium --version
|
||||||
|
|
||||||
CMD ["/bin/bash"]
|
CMD ["/bin/bash"]
|
||||||
|
|||||||
Reference in New Issue
Block a user