somratpro Claude Sonnet 4.6 commited on
Commit
9a4cb29
·
1 Parent(s): cf96b21

feat: install Chromium and enable Hermes browser tools

Browse files

Install system Chromium with all required display/font dependencies.
Set PLAYWRIGHT_CHROMIUM_EXECUTABLE_PATH so Hermes's Playwright picks
up the system binary instead of failing with "Chrome not found".

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

Files changed (1) hide show
  1. Dockerfile +19 -1
Dockerfile CHANGED
@@ -10,6 +10,23 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
10
  curl \
11
  jq \
12
  python3 \
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
13
  && rm -rf /var/lib/apt/lists/* \
14
  && uv pip install --python /opt/hermes/.venv/bin/python --no-cache-dir huggingface_hub
15
 
@@ -73,7 +90,8 @@ RUN echo 'export PATH="/opt/hermes/.venv/bin:/opt/data/.local/bin:$PATH"' \
73
  ENV HERMES_HOME=/opt/data \
74
  HUGGINGMES_APP_DIR=/opt/huggingmes \
75
  HERMES_AGENT_VERSION=${HERMES_AGENT_VERSION} \
76
- PYTHONUNBUFFERED=1
 
77
 
78
  EXPOSE 7861
79
 
 
10
  curl \
11
  jq \
12
  python3 \
13
+ chromium \
14
+ libnss3 \
15
+ libatk1.0-0 \
16
+ libatk-bridge2.0-0 \
17
+ libdrm2 \
18
+ libgbm1 \
19
+ libxcomposite1 \
20
+ libxdamage1 \
21
+ libxrandr2 \
22
+ libxkbcommon0 \
23
+ libx11-6 \
24
+ libxext6 \
25
+ libxfixes3 \
26
+ libasound2 \
27
+ fonts-dejavu-core \
28
+ fonts-liberation \
29
+ fonts-noto-color-emoji \
30
  && rm -rf /var/lib/apt/lists/* \
31
  && uv pip install --python /opt/hermes/.venv/bin/python --no-cache-dir huggingface_hub
32
 
 
90
  ENV HERMES_HOME=/opt/data \
91
  HUGGINGMES_APP_DIR=/opt/huggingmes \
92
  HERMES_AGENT_VERSION=${HERMES_AGENT_VERSION} \
93
+ PYTHONUNBUFFERED=1 \
94
+ PLAYWRIGHT_CHROMIUM_EXECUTABLE_PATH=/usr/bin/chromium
95
 
96
  EXPOSE 7861
97