From 4a2df522572e2ef123932f66268baf7ebda050b4 Mon Sep 17 00:00:00 2001 From: Anton Date: Tue, 9 Jun 2026 11:35:10 +0200 Subject: [PATCH] fix(docker): install fd from upstream so agent find tool works Debian bookworm pins fd-find at 8.7.0, which predates the --no-require-git flag the agent's find tool passes (added in fd 9.0). Every find call failed at argument parsing. Replace the apt fd-find package with an arch-aware install of upstream fd 10.2.0, exposing both fd and fdfind names, with a build-time --version smoke check. --- server/Dockerfile | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/server/Dockerfile b/server/Dockerfile index e02024d..a01340d 100644 --- a/server/Dockerfile +++ b/server/Dockerfile @@ -15,12 +15,29 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ make \ g++ \ ripgrep \ - fd-find \ jq \ less \ tree \ tini \ && rm -rf /var/lib/apt/lists/* + +# Install fd from upstream releases rather than apt: Debian bookworm pins +# fd-find at 8.7.0, which predates the `--no-require-git` flag the agent's +# `find` tool relies on (added in fd 9.0). Provide both `fd` and the +# Debian-style `fdfind` name so either invocation resolves. +ARG TARGETARCH +RUN FD_VER=10.2.0 \ + && case "${TARGETARCH:-amd64}" in \ + arm64) FD_ARCH=aarch64-unknown-linux-gnu ;; \ + *) FD_ARCH=x86_64-unknown-linux-gnu ;; \ + esac \ + && curl -fsSL "https://github.com/sharkdp/fd/releases/download/v${FD_VER}/fd-v${FD_VER}-${FD_ARCH}.tar.gz" \ + | tar -xz -C /tmp \ + && mv "/tmp/fd-v${FD_VER}-${FD_ARCH}/fd" /usr/local/bin/fd \ + && ln -sf /usr/local/bin/fd /usr/local/bin/fdfind \ + && rm -rf "/tmp/fd-v${FD_VER}-${FD_ARCH}" \ + && fd --version + RUN curl -fsSL https://bun.sh/install | bash ENV PATH="/root/.bun/bin:${PATH}"