summaryrefslogtreecommitdiffstats
path: root/Dockerfile
blob: 97c518ab39efb9b9a72cd9b5f1123b87e4209d1f (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 /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/lazygit /bin/
RUN echo "alias gg=lazygit" >> ~/.profile