1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2024-11-30 09:16:47 +02:00
lazygit/Dockerfile

16 lines
514 B
Docker
Raw Normal View History

2018-09-04 11:03:35 +02:00
# run with:
# docker build -t lazygit .
2018-12-06 00:53:36 +02:00
# docker run -it lazygit:latest /bin/sh -l
2018-09-04 11:03:35 +02:00
2019-10-27 03:50:27 +02:00
FROM golang:1.13-alpine3.10
2018-12-05 03:38:32 +02:00
WORKDIR /go/src/github.com/jesseduffield/lazygit/
COPY ./ .
2019-03-02 12:36:35 +02:00
RUN CGO_ENABLED=0 GOOS=linux go build
2018-09-04 11:03:35 +02:00
2019-10-27 03:50:27 +02:00
FROM alpine:3.10
2018-09-04 11:03:35 +02:00
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/
2018-12-06 00:53:36 +02:00
RUN echo "alias gg=lazygit" >> ~/.profile