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

Dockerfile improvements

This commit is contained in:
Tommy Nguyen 2018-12-04 20:38:32 -05:00 committed by Jesse Duffield
parent ff856b7630
commit de37a66ef3

View File

@ -3,11 +3,12 @@
# 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
ADD . /go/src/github.com/jesseduffield/lazygit
RUN go install github.com/jesseduffield/lazygit
WORKDIR /go/src/github.com/jesseduffield/lazygit
WORKDIR /root/
COPY --from=0 /go/src/github.com/jesseduffield/lazygit/lazygit .
CMD ["./lazygit"]