From aad0243201a96a4cdf6b9b7526d540dac78cca58 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 6 May 2026 06:46:17 +0000 Subject: [PATCH] fix: install git in Docker runtime image (#79) The runtime stage uses node:22-bookworm-slim, which does not ship git. Adding GitHub URLs failed at runtime with `Git clone failed: /bin/sh: 1: git: not found`. Install git (and ca-certificates for HTTPS clones) in the runtime stage so cloneRepository, detectVersion, and checkoutRef work out of the box. https://claude.ai/code/session_01BNjzMqqmzWbsxPT5HgrXCN --- .changeset/docker-install-git.md | 5 +++++ packages/context/Dockerfile | 4 ++++ 2 files changed, 9 insertions(+) create mode 100644 .changeset/docker-install-git.md diff --git a/.changeset/docker-install-git.md b/.changeset/docker-install-git.md new file mode 100644 index 0000000..b643a83 --- /dev/null +++ b/.changeset/docker-install-git.md @@ -0,0 +1,5 @@ +--- +"@neuledge/context": patch +--- + +Install `git` in the Docker runtime image so cloning GitHub URLs works out of the box (fixes `Git clone failed: /bin/sh: 1: git: not found`). diff --git a/packages/context/Dockerfile b/packages/context/Dockerfile index a1fe74a..9ce9daa 100644 --- a/packages/context/Dockerfile +++ b/packages/context/Dockerfile @@ -13,6 +13,10 @@ FROM node:22-bookworm-slim AS runtime WORKDIR /app +RUN apt-get update \ + && apt-get install -y --no-install-recommends git ca-certificates \ + && rm -rf /var/lib/apt/lists/* + COPY --from=build /app/packages/context/dist ./dist COPY --from=build /app/packages/context/package.json ./package.json