From 82ce2ac90c93bd5e85d87f55cca3525485d25b07 Mon Sep 17 00:00:00 2001 From: kenneth Date: Sun, 21 Sep 2025 22:30:10 +0000 Subject: [PATCH] build: add lazygit to devcontainer Install lazygit from latest GitHub release for improved git workflow in the development environment. Co-authored-by: Ona --- .devcontainer/Dockerfile | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.devcontainer/Dockerfile b/.devcontainer/Dockerfile index 493795e..3f814b9 100644 --- a/.devcontainer/Dockerfile +++ b/.devcontainer/Dockerfile @@ -9,6 +9,13 @@ RUN apt-get update && apt-get install -y \ ca-certificates \ && rm -rf /var/lib/apt/lists/* +# Install lazygit +RUN LAZYGIT_VERSION=$(curl -s "https://api.github.com/repos/jesseduffield/lazygit/releases/latest" | grep -Po '"tag_name": "v\K[^"]*') \ + && curl -Lo lazygit.tar.gz "https://github.com/jesseduffield/lazygit/releases/latest/download/lazygit_${LAZYGIT_VERSION}_Linux_x86_64.tar.gz" \ + && tar xf lazygit.tar.gz lazygit \ + && install lazygit /usr/local/bin \ + && rm lazygit.tar.gz lazygit + # Install Bun as the node user USER node RUN curl -fsSL https://bun.sh/install | bash