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

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

FROM alpine:latest
RUN apk add -U git xdg-utils
WORKDIR /root/
COPY --from=0 /go/src/github.com/jesseduffield/lazygit/lazygit .
CMD ["./lazygit"]