2018-09-04 19:03:35 +10:00
|
|
|
# run with:
|
|
|
|
# docker build -t lazygit .
|
2020-06-06 21:31:30 -04:00
|
|
|
# docker run -it lazygit:latest /bin/sh
|
2018-09-04 19:03:35 +10:00
|
|
|
|
2020-03-03 18:14:49 -05:00
|
|
|
FROM golang:1.14-alpine3.11
|
2018-12-04 20:38:32 -05:00
|
|
|
WORKDIR /go/src/github.com/jesseduffield/lazygit/
|
|
|
|
COPY ./ .
|
2019-03-02 19:36:35 +09:00
|
|
|
RUN CGO_ENABLED=0 GOOS=linux go build
|
2018-09-04 19:03:35 +10:00
|
|
|
|
2020-03-03 18:14:49 -05:00
|
|
|
FROM alpine:3.11
|
2018-09-04 19:03:35 +10:00
|
|
|
RUN apk add -U git xdg-utils
|
2018-12-05 06:11:30 -05:00
|
|
|
WORKDIR /go/src/github.com/jesseduffield/lazygit/
|
2019-03-02 20:56:32 +11:00
|
|
|
COPY --from=0 /go/src/github.com/jesseduffield/lazygit /go/src/github.com/jesseduffield/lazygit
|
2018-12-05 06:11:30 -05:00
|
|
|
COPY --from=0 /go/src/github.com/jesseduffield/lazygit/lazygit /bin/
|
2018-12-05 17:53:36 -05:00
|
|
|
RUN echo "alias gg=lazygit" >> ~/.profile
|
2020-06-06 21:31:30 -04:00
|
|
|
|
|
|
|
ENTRYPOINT [ "lazygit" ]
|