From 772da2e0508b8ff4190115383168049b2e611a85 Mon Sep 17 00:00:00 2001 From: Hermes Date: Wed, 20 May 2026 14:25:10 -0400 Subject: [PATCH] feat(hermes): replace Dockerfile with python:3.11-slim based image with Chromium --- ai/hermes/entrypoint.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 ai/hermes/entrypoint.sh diff --git a/ai/hermes/entrypoint.sh b/ai/hermes/entrypoint.sh new file mode 100644 index 0000000..5b2f0c3 --- /dev/null +++ b/ai/hermes/entrypoint.sh @@ -0,0 +1,20 @@ +#!/bin/bash +set -e + +# Hermes Agent entrypoint script +# Installs custom tools and runtime dependencies, +# then delegates to the passed command (usually "gateway run"). + +# Install custom tools from persistent volume if available +if [ -f /opt/data/hermes-tools/install.sh ]; then + bash /opt/data/hermes-tools/install.sh +fi + +# Install additional runtime deps (idempotent) +if command -v uv &>/dev/null; then + uv pip install --system --no-cache-dir --quiet \ + openai mautrix[encryption] 2>/dev/null || true +fi + +# Execute the passed command with tini for proper signal handling +exec tini -g -- "$@"