summaryrefslogtreecommitdiffstats
path: root/Dockerfile
blob: 9d46fcb6a6cc7c3b0c8adcbca1351bd5aeb337b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
# run with:
# docker build -t lazygit .
# docker run -it lazygit:latest /bin/sh -l

FROM golang:alpine
WORKDIR /go/src/github.com/jesseduffield/lazygit/
COPY ./ .
RUN CGO_ENABLED=0 GOOS=linux go build -o lazygit .

FROM alpine:latest
RUN apk add -U git xdg-utils
WORKDIR /go/src/github.com/jesseduffield/lazygit/
COPY --from=0 /go/src/github.com/jesseduffield/lazygit /go/src/github.com/jesseduffield/lazygit
COPY --from=0 /go/src/github.com/jesseduffield/lazygit/lazygit /bin/
RUN echo "alias gg=lazygit" >> ~/.profile