From 4530762bf2e5ad8d2de95c620485e79f4af39c36 Mon Sep 17 00:00:00 2001 From: alkatrazz Date: Mon, 29 Jun 2026 23:21:32 +0200 Subject: [PATCH] =?UTF-8?q?fix(finlab):=20ttyd=20absent=20des=20d=C3=A9p?= =?UTF-8?q?=C3=B4ts=20bookworm=20=E2=86=92=20binaire=20statique=20GitHub?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Le build amont échouait (`E: Package 'ttyd' has no installation candidate`) : ttyd n'est pas packagé dans Debian bookworm. On récupère le binaire statique (musl, pin TTYD_VERSION=1.7.7) depuis les releases GitHub. Build complet validé en local (podman) : ttyd 1.7.7, claude-code 2.1.195, import finlab + seed OK. Co-Authored-By: Claude Opus 4.8 --- tools/finlab/Dockerfile | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/tools/finlab/Dockerfile b/tools/finlab/Dockerfile index 146478a..81d3363 100644 --- a/tools/finlab/Dockerfile +++ b/tools/finlab/Dockerfile @@ -6,14 +6,19 @@ # aucune facturation API, aucun broker, lecture/analyse uniquement. FROM python:3.12-slim-bookworm -# Node (pour le CLI claude-code) + ttyd (terminal web) + git + tini (PID 1 propre). +# Node (pour le CLI claude-code) + git + tini (PID 1 propre). ttyd n'est PAS dans les dépôts +# Debian bookworm → on récupère le binaire statique (musl) depuis les releases GitHub (pin). +ARG TTYD_VERSION=1.7.7 RUN apt-get update && apt-get install -y --no-install-recommends \ - curl ca-certificates git ttyd tini procps \ + curl ca-certificates git tini procps \ + && curl -fsSL "https://github.com/tsl0922/ttyd/releases/download/${TTYD_VERSION}/ttyd.x86_64" \ + -o /usr/local/bin/ttyd \ + && chmod +x /usr/local/bin/ttyd \ + && ttyd --version \ && curl -fsSL https://deb.nodesource.com/setup_22.x | bash - \ && apt-get install -y --no-install-recommends nodejs \ && npm install -g @anthropic-ai/claude-code \ && npm cache clean --force \ - && apt-get purge -y curl \ && apt-get clean && rm -rf /var/lib/apt/lists/* # Dépendances Python de finlab dans un venv dédié (séparé du workspace, donc non altérable