mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-06-27 00:51:18 +02:00
Dockerfile improvements
This commit is contained in:
committed by
Jesse Duffield
parent
ff856b7630
commit
de37a66ef3
13
Dockerfile
13
Dockerfile
@ -3,11 +3,12 @@
|
|||||||
# docker run -it lazygit:latest
|
# docker run -it lazygit:latest
|
||||||
|
|
||||||
FROM golang:alpine
|
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
|
RUN apk add -U git xdg-utils
|
||||||
|
WORKDIR /root/
|
||||||
ADD . /go/src/github.com/jesseduffield/lazygit
|
COPY --from=0 /go/src/github.com/jesseduffield/lazygit/lazygit .
|
||||||
|
CMD ["./lazygit"]
|
||||||
RUN go install github.com/jesseduffield/lazygit
|
|
||||||
|
|
||||||
WORKDIR /go/src/github.com/jesseduffield/lazygit
|
|
||||||
|
Reference in New Issue
Block a user