From 5a406c060686bacbbbfc973f78a79c85a28b49ae Mon Sep 17 00:00:00 2001 From: Hidde Beydals Date: Tue, 17 Sep 2024 13:33:46 +0200 Subject: [PATCH] chore: update Git to >=2.42.0 in dev container Signed-off-by: Hidde Beydals --- Dockerfile.dev | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Dockerfile.dev b/Dockerfile.dev index 819fe6707a..8f508dabaf 100644 --- a/Dockerfile.dev +++ b/Dockerfile.dev @@ -10,7 +10,16 @@ RUN apt update && apt install -y ca-certificates curl gnupg unzip \ && curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg \ && echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_$NODE_MAJOR.x nodistro main" | tee /etc/apt/sources.list.d/nodesource.list \ && apt-get update && apt-get install nodejs -y \ - && npm install --global pnpm@${PNPM_VERSION} + && npm install --global pnpm@${PNPM_VERSION} \ + # Install Git from "trixie" repository to get a more recent version than + # the one available in "stable". This can be removed once the version in + # "stable" is updated to >= 2.42.0 (which supports `--orphan` for `git + # worktree add`. + && echo "deb http://deb.debian.org/debian trixie main" > /etc/apt/sources.list.d/trixie.list \ + && apt update \ + && apt install -y -t trixie git \ + && apt-get clean \ + && rm -rf /var/lib/apt/lists/* ARG USER_ID=1000 ARG GROUP_ID=1000