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