-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
21 lines (14 loc) · 721 Bytes
/
Copy pathDockerfile
File metadata and controls
21 lines (14 loc) · 721 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Dockerfile for testing
FROM alpine:latest
# Install dependencies
RUN apk add docker git nodejs neovim go ripgrep grep curl build-base wget --update
RUN git clone https://github.com/jesseduffield/lazydocker.git && \
cd lazydocker && \
go install && \
mv ~/go/bin/lazydocker /usr/bin
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/download/v${LAZYGIT_VERSION}/lazygit_${LAZYGIT_VERSION}_Linux_x86_64.tar.gz" && \
tar xf lazygit.tar.gz lazygit && \
install lazygit -D -t /usr/local/bin/
WORKDIR /workspace
CMD ["sh"]