From 6f1774366766b96913a58107942840242cfb4604 Mon Sep 17 00:00:00 2001 From: Thierry Pouplier Date: Sat, 9 May 2026 17:44:55 +0000 Subject: [PATCH] fix: install into existing venv instead of recreating it The nousresearch/hermes-agent:latest base image already has a venv with hermes-agent installed at /opt/hermes/.venv/. Running 'uv venv' on top of it either fails or wipes the existing install. Fix: activate the existing venv first, then pip install into it. --- ai/Dockerfile | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ai/Dockerfile b/ai/Dockerfile index 698bd37..57c4638 100644 --- a/ai/Dockerfile +++ b/ai/Dockerfile @@ -22,8 +22,10 @@ WORKDIR /opt/hermes # ---------- Hermes venv ---------- USER hermes -# ---------- Python virtualenv avec Piper TTS ---------- -RUN uv venv && \ +# ---------- Piper TTS dans le venv existant ---------- +# Le venv existe déjà dans l'image de base (hermes-agent installé). +# On ajoute simplement Piper et ses dépendences. +RUN . /opt/hermes/.venv/bin/activate && \ uv pip install --no-cache-dir piper-tts sounddevice numpy # ---------- Télécharger la voix Piper Ryan (high quality) ----------