github.com/fluffynuts/lazygit@v0.8.1/Dockerfile (about)

     1  # run with:
     2  # docker build -t lazygit .
     3  # docker run -it lazygit:latest /bin/sh -l
     4  
     5  FROM golang:alpine
     6  WORKDIR /go/src/github.com/jesseduffield/lazygit/
     7  COPY ./ .
     8  RUN CGO_ENABLED=0 GOOS=linux go build
     9  
    10  FROM alpine:latest
    11  RUN apk add -U git xdg-utils
    12  WORKDIR /go/src/github.com/jesseduffield/lazygit/
    13  COPY --from=0 /go/src/github.com/jesseduffield/lazygit /go/src/github.com/jesseduffield/lazygit
    14  COPY --from=0 /go/src/github.com/jesseduffield/lazygit/lazygit /bin/
    15  RUN echo "alias gg=lazygit" >> ~/.profile