From 51e62d0df9b1ec482d905540f1c09de03c08ed47 Mon Sep 17 00:00:00 2001 From: TechArtDev Date: Sun, 1 Feb 2026 21:58:32 +0200 Subject: [PATCH] Fix architecture detection for ttyd installation --- openclaw_assistant/Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/openclaw_assistant/Dockerfile b/openclaw_assistant/Dockerfile index 8e4a5e2..b4515ad 100644 --- a/openclaw_assistant/Dockerfile +++ b/openclaw_assistant/Dockerfile @@ -29,8 +29,10 @@ RUN curl -fsSL https://deb.nodesource.com/setup_22.x | bash - \ && rm -rf /var/lib/apt/lists/* # Install ttyd (web terminal) - not in Debian repos, download binary +# Docker TARGETARCH: amd64, arm64, arm/v7 → ttyd filenames: x86_64, aarch64, armhf ARG TARGETARCH -RUN ARCH=$(echo ${TARGETARCH:-$(dpkg --print-architecture)} | sed 's/aarch64/arm64/;s/armv7/armhf/;s/amd64/x86_64/') \ +RUN ARCH=$(echo ${TARGETARCH:-$(dpkg --print-architecture)} | sed 's|arm64|aarch64|;s|arm/v7|armhf|;s|armv7|armhf|;s|amd64|x86_64|') \ + && echo "Downloading ttyd for arch: ${ARCH}" \ && curl -fsSL "https://github.com/tsl0922/ttyd/releases/download/1.7.7/ttyd.${ARCH}" -o /usr/local/bin/ttyd \ && chmod +x /usr/local/bin/ttyd