1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-02-03 13:21:56 +02:00
lazygit/Dockerfile

15 lines
372 B
Docker
Raw Normal View History

2018-09-04 19:03:35 +10:00
# run with:
# docker build -t lazygit .
# docker run -it lazygit:latest
FROM golang:alpine
2018-12-04 20:38:32 -05:00
WORKDIR /go/src/github.com/jesseduffield/lazygit/
COPY ./ .
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o lazygit .
2018-09-04 19:03:35 +10:00
2018-12-04 20:38:32 -05:00
FROM alpine:latest
2018-09-04 19:03:35 +10:00
RUN apk add -U git xdg-utils
2018-12-04 20:38:32 -05:00
WORKDIR /root/
COPY --from=0 /go/src/github.com/jesseduffield/lazygit/lazygit .
CMD ["./lazygit"]