Skip to content

Commit df5cba1

Browse files
committed
feat: add lazygit to dogfood Dockerfile
1 parent 6540746 commit df5cba1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

dogfood/Dockerfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,12 @@ RUN apt-get update --quiet && apt-get install --yes \
172172
RUN curl -L https://github.com/cli/cli/releases/download/v2.14.7/gh_2.14.7_linux_amd64.deb -o gh.deb && \
173173
dpkg -i gh.deb
174174

175+
# Install Lazygit
176+
# See https://github.com/jesseduffield/lazygit#ubuntu
177+
RUN LAZYGIT_VERSION=$(curl -s "https://api.github.com/repos/jesseduffield/lazygit/releases/latest" | grep '"tag_name":' | sed -E 's/.*"v*([^"]+)".*/\1/') && \
178+
curl -Lo lazygit.tar.gz "https://github.com/jesseduffield/lazygit/releases/latest/download/lazygit_${LAZYGIT_VERSION}_Linux_x86_64.tar.gz" && \
179+
sudo tar xf lazygit.tar.gz -C /usr/local/bin lazygit
180+
175181
# Install frontend utilities
176182
RUN apt-get update && \
177183
# Node.js (from nodesource) and Yarn (from yarnpkg)

0 commit comments

Comments
 (0)