1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-02-09 13:47:11 +02:00
lazygit/Dockerfile
2018-12-09 16:36:12 +11:00

15 lines
372 B
Docker

# 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"]