build: add lazygit to devcontainer

Install lazygit from latest GitHub release for improved git workflow
in the development environment.

Co-authored-by: Ona <no-reply@ona.com>
This commit is contained in:
2025-09-21 22:30:10 +00:00
parent 8062fdb7f3
commit 82ce2ac90c

View File

@@ -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