File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -6,3 +6,16 @@ FROM ghcr.io/diamondlightsource/ubuntu-devcontainer:noble AS developer
66RUN apt-get update -y && apt-get install -y --no-install-recommends \
77 graphviz \
88 && apt-get dist-clean
9+
10+ # Can replace with "apt install lazygit" when Ubuntu >= 25.10
11+ # Download and install latest lazygit binary
12+ RUN LAZYGIT_VERSION=$(curl -s "https://api.github.com/repos/jesseduffield/lazygit/releases/latest" \
13+ | grep -Po '"tag_name": "v\K [^"]*' ) \
14+ && echo "Installing lazygit version: $LAZYGIT_VERSION" \
15+ && curl -Lo lazygit.tar.gz \
16+ "https://github.com/jesseduffield/lazygit/releases/download/v${LAZYGIT_VERSION}/lazygit_${LAZYGIT_VERSION}_Linux_x86_64.tar.gz" \
17+ && tar xf lazygit.tar.gz lazygit \
18+ && install lazygit /usr/local/bin
19+
20+ # Cleanup
21+ RUN rm lazygit.tar.gz lazygit
Original file line number Diff line number Diff line change @@ -7,6 +7,20 @@ RUN apt-get update -y && apt-get install -y --no-install-recommends \
77 graphviz \
88 && apt-get dist-clean{% if docker %}
99
10+ # Can replace with "apt install lazygit" when Ubuntu >= 25.10
11+ # Download and install latest lazygit binary
12+ RUN LAZYGIT_VERSION=$(curl -s "https://api.github.com/repos/jesseduffield/lazygit/releases/latest" \
13+ | grep -Po '"tag_name": "v\K[^"]*') \
14+ && echo "Installing lazygit version: $LAZYGIT_VERSION" \
15+ && curl -Lo lazygit.tar.gz \
16+ "https://github.com/jesseduffield/lazygit/releases/download/v${LAZYGIT_VERSION}/lazygit_${LAZYGIT_VERSION}_Linux_x86_64.tar.gz" \
17+ && tar xf lazygit.tar.gz lazygit \
18+ && install lazygit /usr/local/bin
19+
20+ # Cleanup
21+ RUN rm lazygit.tar.gz lazygit
22+
23+
1024# The build stage installs the context into the venv
1125FROM developer AS build
1226
You can’t perform that action at this time.
0 commit comments